@limetech/lime-crm-building-blocks 1.113.4 → 1.114.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 +15 -0
- package/dist/cjs/extension-mapping-63bdafd3.js +57 -0
- package/dist/cjs/file-extension-7c2eae39.js +22 -0
- package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
- package/dist/cjs/limebb-document-chips.cjs.entry.js +407 -0
- package/dist/cjs/limebb-document-item.cjs.entry.js +2 -2
- package/dist/cjs/limebb-document-picker.cjs.entry.js +1 -1
- 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 +1 -1
- 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 +3 -3
- package/dist/cjs/limebb-lime-query-order-by-item.cjs.entry.js +2 -2
- package/dist/cjs/limebb-lime-query-response-format-builder.cjs.entry.js +1 -1
- package/dist/cjs/limebb-lime-query-response-format-editor_2.cjs.entry.js +1 -1
- package/dist/cjs/limebb-limeobject-file-viewer.cjs.entry.js +2 -55
- package/dist/cjs/limebb-live-docs-info.cjs.entry.js +2 -2
- package/dist/cjs/limebb-locale-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +2 -2
- package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +25 -3
- package/dist/cjs/limebb-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-object-chip.cjs.entry.js +1 -1
- package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +2 -2
- package/dist/cjs/limebb-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/limebb-trend-indicator.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/document-chips/document-chips.css +20 -0
- package/dist/collection/components/document-chips/document-chips.js +178 -0
- package/dist/collection/components/document-chips/document-chips.types.js +1 -0
- package/dist/collection/components/document-picker/document-item/document-item.js +2 -2
- package/dist/collection/components/document-picker/document-picker.js +1 -1
- 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-comparison.js +1 -1
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-group.js +2 -2
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.js +1 -1
- package/dist/collection/components/lime-query-builder/lime-query-builder.js +1 -1
- package/dist/collection/components/lime-query-builder/lime-query-response-format-builder.js +1 -1
- package/dist/collection/components/lime-query-builder/limetype-field/limetype-field.js +1 -1
- package/dist/collection/components/lime-query-builder/order-by/order-by-editor.js +1 -1
- package/dist/collection/components/lime-query-builder/order-by/order-by-item.js +2 -2
- package/dist/collection/components/lime-query-builder/response-format/response-format-item.js +1 -1
- 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/object-chip/object-chip.css +1 -0
- package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +2 -2
- package/dist/collection/components/summary-popover/summary-popover.js +49 -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/file-extension.js +18 -0
- package/dist/collection/util/file-icon-background-colors.js +98 -0
- package/dist/collection/util/file-icon-fill-colors.js +98 -0
- package/dist/collection/util/file-icon.js +18 -0
- package/dist/collection/util/file-icons.js +99 -0
- package/dist/components/document-item.js +2 -2
- package/dist/components/extension-mapping.js +55 -0
- package/dist/components/feed-item-thumbnail-file-info.js +1 -1
- package/dist/components/feed-timeline-item.js +1 -1
- package/dist/components/kanban-group.js +1 -1
- package/dist/components/kanban-item.js +1 -1
- package/dist/components/lime-query-filter-comparison.js +1 -1
- package/dist/components/lime-query-filter-expression.js +3 -3
- package/dist/components/limebb-document-chips.d.ts +11 -0
- package/dist/components/limebb-document-chips.js +437 -0
- package/dist/components/limebb-document-picker.js +1 -1
- 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 +1 -1
- package/dist/components/limebb-lime-query-response-format-builder.js +1 -1
- package/dist/components/limebb-limeobject-file-viewer.js +1 -54
- package/dist/components/limebb-locale-picker.js +1 -1
- package/dist/components/limebb-mention-group-counter.js +2 -2
- package/dist/components/limebb-object-chip.js +1 -1
- package/dist/components/limebb-text-editor.js +1 -1
- package/dist/components/limebb-trend-indicator.js +1 -1
- package/dist/components/limetype-field.js +1 -1
- package/dist/components/live-docs-info.js +2 -2
- package/dist/components/notification-item.js +1 -1
- package/dist/components/order-by-editor.js +1 -1
- package/dist/components/order-by-item.js +2 -2
- package/dist/components/percentage-visualizer.js +2 -2
- package/dist/components/response-format-item.js +1 -1
- package/dist/components/summary-popover.js +45 -4
- package/dist/esm/extension-mapping-fcade195.js +55 -0
- package/dist/esm/file-extension-568475d1.js +20 -0
- package/dist/esm/lime-crm-building-blocks.js +1 -1
- package/dist/esm/limebb-document-chips.entry.js +403 -0
- package/dist/esm/limebb-document-item.entry.js +2 -2
- package/dist/esm/limebb-document-picker.entry.js +1 -1
- 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 +1 -1
- 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 +3 -3
- package/dist/esm/limebb-lime-query-order-by-item.entry.js +2 -2
- package/dist/esm/limebb-lime-query-response-format-builder.entry.js +1 -1
- package/dist/esm/limebb-lime-query-response-format-editor_2.entry.js +1 -1
- package/dist/esm/limebb-limeobject-file-viewer.entry.js +1 -54
- package/dist/esm/limebb-live-docs-info.entry.js +2 -2
- package/dist/esm/limebb-locale-picker.entry.js +1 -1
- package/dist/esm/limebb-mention-group-counter.entry.js +2 -2
- package/dist/esm/limebb-navigation-button_2.entry.js +25 -3
- package/dist/esm/limebb-notification-item.entry.js +1 -1
- package/dist/esm/limebb-object-chip.entry.js +1 -1
- package/dist/esm/limebb-percentage-visualizer.entry.js +2 -2
- package/dist/esm/limebb-text-editor.entry.js +1 -1
- package/dist/esm/limebb-trend-indicator.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/{p-0c25d565.entry.js → p-0d0f4c0f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-35b75e49.entry.js → p-18d1ab86.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-551ffa9f.entry.js → p-1e3e06be.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-ddf0dcbc.entry.js → p-20b5ff30.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-b2e705bc.entry.js → p-22fffe85.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-83ff2b4c.entry.js → p-2ed843e9.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-14cd62c1.entry.js → p-375f40d9.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-c09dcd4c.entry.js → p-3a7b37cc.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-3443a292.entry.js → p-3b3e7328.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-a4f367f8.entry.js → p-4dad4ce8.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-50aad872.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-9161869b.entry.js → p-53d54dc8.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-1d44c670.entry.js → p-6bd5c65f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-6bf1ab6d.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-0536bf83.entry.js → p-7a6c1595.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-9aad6195.entry.js → p-7b5a1e83.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-df13ebba.entry.js → p-812bf26e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-385020b4.entry.js → p-81f8e5df.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-4d9244e7.entry.js → p-94e6f0de.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-6c67ed0e.entry.js → p-9bc5caac.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-283a6f9e.entry.js → p-9c204549.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-00414464.entry.js → p-a7e55181.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-ab2a95a6.js +1 -0
- package/dist/lime-crm-building-blocks/p-b42e9740.js +1 -0
- package/dist/lime-crm-building-blocks/{p-5d0874f6.entry.js → p-d5b835a6.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-d7fc530f.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-401ccdec.entry.js → p-d9f76810.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-2395476f.entry.js → p-dddd8a43.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-77ef7ad1.entry.js → p-ed14ca30.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-711df3e6.entry.js → p-f8520955.entry.js} +1 -1
- package/dist/types/components/document-chips/document-chips.d.ts +45 -0
- package/dist/types/components/document-chips/document-chips.types.d.ts +23 -0
- package/dist/types/components/summary-popover/summary-popover.d.ts +10 -1
- package/dist/types/components.d.ts +110 -0
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/util/file-extension.d.ts +10 -0
- package/dist/types/util/file-icon-background-colors.d.ts +3 -0
- package/dist/types/util/file-icon-fill-colors.d.ts +3 -0
- package/dist/types/util/file-icon.d.ts +9 -0
- package/dist/types/util/file-icons.d.ts +3 -0
- package/package.json +2 -2
- package/dist/lime-crm-building-blocks/p-7b9981b9.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-d2bd2fc3.entry.js +0 -1
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-d86e55c0.js';
|
|
2
|
+
import { g as getPreviewType } from './extension-mapping-fcade195.js';
|
|
3
|
+
import { g as getFileExtension } from './file-extension-568475d1.js';
|
|
4
|
+
|
|
5
|
+
// Copy of file icon names from lime-elements.
|
|
6
|
+
// Source: lime-elements/src/components/file/icons.ts
|
|
7
|
+
//
|
|
8
|
+
// Stencil doesn't support exporting utility functions from a component
|
|
9
|
+
// library, so we duplicate them here until a proper shared solution exists.
|
|
10
|
+
const DEFAULT_ICON = 'file';
|
|
11
|
+
const CALENDAR_ICON = 'tear_off_calendar';
|
|
12
|
+
const EMAIL_ICON = 'email';
|
|
13
|
+
const HTML_ICON = 'internet';
|
|
14
|
+
const TEXT_ICON = 'text_box';
|
|
15
|
+
const EXCEL_ICON = 'ms_excel_copyrighted';
|
|
16
|
+
const WORD_ICON = 'ms_word_copyrighted';
|
|
17
|
+
const POWERPOINT_ICON = 'ms_powerpoint_copyrighted';
|
|
18
|
+
const IMAGE_ICON = 'picture';
|
|
19
|
+
const PHOTO_ICON = 'camera';
|
|
20
|
+
const VECTOR_GRAPHIC_ICON = 'vector';
|
|
21
|
+
const PRESENTATION_ICON = 'presentation_filled';
|
|
22
|
+
const DOCUMENT_ICON = 'overview_pages_2';
|
|
23
|
+
const SPREADSHEET_ICON = 'data_sheet';
|
|
24
|
+
const AUDIO_ICON = 'audio_wave';
|
|
25
|
+
const VIDEO_ICON = 'video_file';
|
|
26
|
+
const COMPRESSED_ICON = 'condom_package';
|
|
27
|
+
const MESSAGE_ICON = 'ms_outlook_copyrighted';
|
|
28
|
+
const DATA_ICON = 'database';
|
|
29
|
+
const DEFAULT_FILE_ICON = DEFAULT_ICON;
|
|
30
|
+
const filetypeIconTable = {
|
|
31
|
+
msg: MESSAGE_ICON,
|
|
32
|
+
ics: CALENDAR_ICON,
|
|
33
|
+
ical: CALENDAR_ICON,
|
|
34
|
+
icalendar: CALENDAR_ICON,
|
|
35
|
+
ifb: CALENDAR_ICON,
|
|
36
|
+
email: EMAIL_ICON,
|
|
37
|
+
eml: EMAIL_ICON,
|
|
38
|
+
oft: EMAIL_ICON,
|
|
39
|
+
ost: EMAIL_ICON,
|
|
40
|
+
emlx: EMAIL_ICON,
|
|
41
|
+
html: HTML_ICON,
|
|
42
|
+
xml: HTML_ICON,
|
|
43
|
+
txt: TEXT_ICON,
|
|
44
|
+
rtf: TEXT_ICON,
|
|
45
|
+
dot: WORD_ICON,
|
|
46
|
+
doc: WORD_ICON,
|
|
47
|
+
docx: WORD_ICON,
|
|
48
|
+
dotx: WORD_ICON,
|
|
49
|
+
docm: WORD_ICON,
|
|
50
|
+
dotm: WORD_ICON,
|
|
51
|
+
odt: DOCUMENT_ICON,
|
|
52
|
+
pages: DOCUMENT_ICON,
|
|
53
|
+
pdf: 'PDF_2',
|
|
54
|
+
ppt: POWERPOINT_ICON,
|
|
55
|
+
pot: POWERPOINT_ICON,
|
|
56
|
+
pps: POWERPOINT_ICON,
|
|
57
|
+
pptx: POWERPOINT_ICON,
|
|
58
|
+
pptm: POWERPOINT_ICON,
|
|
59
|
+
potx: POWERPOINT_ICON,
|
|
60
|
+
potm: POWERPOINT_ICON,
|
|
61
|
+
ppam: POWERPOINT_ICON,
|
|
62
|
+
ppsx: POWERPOINT_ICON,
|
|
63
|
+
ppsm: POWERPOINT_ICON,
|
|
64
|
+
sldx: POWERPOINT_ICON,
|
|
65
|
+
sldm: POWERPOINT_ICON,
|
|
66
|
+
odp: PRESENTATION_ICON,
|
|
67
|
+
key: PRESENTATION_ICON,
|
|
68
|
+
xls: EXCEL_ICON,
|
|
69
|
+
xlsx: EXCEL_ICON,
|
|
70
|
+
csv: SPREADSHEET_ICON,
|
|
71
|
+
numbers: SPREADSHEET_ICON,
|
|
72
|
+
jpg: PHOTO_ICON,
|
|
73
|
+
jpeg: PHOTO_ICON,
|
|
74
|
+
heic: PHOTO_ICON,
|
|
75
|
+
bmp: IMAGE_ICON,
|
|
76
|
+
png: IMAGE_ICON,
|
|
77
|
+
gif: IMAGE_ICON,
|
|
78
|
+
psd: 'adobe_photoshop_copyrighted',
|
|
79
|
+
ai: 'adobe_illustrator_copyrighted',
|
|
80
|
+
svg: VECTOR_GRAPHIC_ICON,
|
|
81
|
+
svgz: VECTOR_GRAPHIC_ICON,
|
|
82
|
+
ep: VECTOR_GRAPHIC_ICON,
|
|
83
|
+
eps: VECTOR_GRAPHIC_ICON,
|
|
84
|
+
sketch: VECTOR_GRAPHIC_ICON,
|
|
85
|
+
mp3: AUDIO_ICON,
|
|
86
|
+
wav: AUDIO_ICON,
|
|
87
|
+
wma: AUDIO_ICON,
|
|
88
|
+
ogg: AUDIO_ICON,
|
|
89
|
+
avi: VIDEO_ICON,
|
|
90
|
+
flv: VIDEO_ICON,
|
|
91
|
+
h264: VIDEO_ICON,
|
|
92
|
+
mov: VIDEO_ICON,
|
|
93
|
+
mp4: VIDEO_ICON,
|
|
94
|
+
mwv: VIDEO_ICON,
|
|
95
|
+
zip: COMPRESSED_ICON,
|
|
96
|
+
'7z': COMPRESSED_ICON,
|
|
97
|
+
rar: COMPRESSED_ICON,
|
|
98
|
+
json: 'json',
|
|
99
|
+
yaml: DATA_ICON,
|
|
100
|
+
sql: DATA_ICON,
|
|
101
|
+
db: DATA_ICON,
|
|
102
|
+
dbf: DATA_ICON,
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
// Copy of file icon fill colors from lime-elements.
|
|
106
|
+
// Source: lime-elements/src/components/file/icon-fill-colors.ts
|
|
107
|
+
//
|
|
108
|
+
// Stencil doesn't support exporting utility functions from a component
|
|
109
|
+
// library, so we duplicate them here until a proper shared solution exists.
|
|
110
|
+
const DEFAULT_ICON_FILL_COLOR = 'rgb(var(--color-gray-dark))';
|
|
111
|
+
const CALENDAR_ICON_FILL_COLOR = 'rgb(var(--color-cyan-dark))';
|
|
112
|
+
const EMAIL_ICON_FILL_COLOR = 'rgb(var(--color-gray-dark))';
|
|
113
|
+
const HTML_ICON_FILL_COLOR = 'rgb(var(--color-blue-dark))';
|
|
114
|
+
const TEXT_ICON_FILL_COLOR = 'rgb(var(--color-yellow-darker))';
|
|
115
|
+
const EXCEL_ICON_FILL_COLOR = 'rgb(var(--color-green-dark))';
|
|
116
|
+
const POWERPOINT_ICON_FILL_COLOR = 'rgb(var(--color-coral-dark))';
|
|
117
|
+
const WORD_ICON_FILL_COLOR = 'rgb(var(--color-sky-dark))';
|
|
118
|
+
const IMAGE_ICON_FILL_COLOR = 'rgb(var(--color-lime-dark))';
|
|
119
|
+
const VECTOR_GRAPHIC_FILL_COLOR = 'rgb(var(--color-magenta-dark))';
|
|
120
|
+
const PRESENTATION_ICON_FILL_COLOR = 'rgb(var(--color-blue-dark))';
|
|
121
|
+
const DOCUMENT_ICON_FILL_COLOR = 'rgb(var(--color-orange-dark))';
|
|
122
|
+
const SPREADSHEET_ICON_FILL_COLOR = 'rgb(var(--color-green-dark))';
|
|
123
|
+
const AUDIO_ICON_FILL_COLOR = 'rgb(var(--color-indigo-dark))';
|
|
124
|
+
const VIDEO_ICON_FILL_COLOR = 'rgb(var(--color-red-dark))';
|
|
125
|
+
const COMPRESSED_ICON_FILL_COLOR = 'rgb(var(--color-brown-default))';
|
|
126
|
+
const MESSAGE_ICON_FILL_COLOR = 'rgb(var(--color-yellow-dark))';
|
|
127
|
+
const PDF_ICON_FILL_COLOR = 'rgb(var(--color-red-dark))';
|
|
128
|
+
const DATA_ICON_FILL_COLOR = 'rgb(var(--color-glaucous-dark))';
|
|
129
|
+
const DEFAULT_ICON_FILL = DEFAULT_ICON_FILL_COLOR;
|
|
130
|
+
const filetypeFillColorTable = {
|
|
131
|
+
msg: MESSAGE_ICON_FILL_COLOR,
|
|
132
|
+
ics: CALENDAR_ICON_FILL_COLOR,
|
|
133
|
+
ical: CALENDAR_ICON_FILL_COLOR,
|
|
134
|
+
icalendar: CALENDAR_ICON_FILL_COLOR,
|
|
135
|
+
ifb: CALENDAR_ICON_FILL_COLOR,
|
|
136
|
+
email: EMAIL_ICON_FILL_COLOR,
|
|
137
|
+
eml: EMAIL_ICON_FILL_COLOR,
|
|
138
|
+
oft: EMAIL_ICON_FILL_COLOR,
|
|
139
|
+
ost: EMAIL_ICON_FILL_COLOR,
|
|
140
|
+
emlx: EMAIL_ICON_FILL_COLOR,
|
|
141
|
+
html: HTML_ICON_FILL_COLOR,
|
|
142
|
+
xml: HTML_ICON_FILL_COLOR,
|
|
143
|
+
txt: TEXT_ICON_FILL_COLOR,
|
|
144
|
+
rtf: TEXT_ICON_FILL_COLOR,
|
|
145
|
+
dot: WORD_ICON_FILL_COLOR,
|
|
146
|
+
doc: WORD_ICON_FILL_COLOR,
|
|
147
|
+
docx: WORD_ICON_FILL_COLOR,
|
|
148
|
+
dotx: WORD_ICON_FILL_COLOR,
|
|
149
|
+
docm: WORD_ICON_FILL_COLOR,
|
|
150
|
+
dotm: WORD_ICON_FILL_COLOR,
|
|
151
|
+
odt: DOCUMENT_ICON_FILL_COLOR,
|
|
152
|
+
pages: DOCUMENT_ICON_FILL_COLOR,
|
|
153
|
+
pdf: PDF_ICON_FILL_COLOR,
|
|
154
|
+
ppt: POWERPOINT_ICON_FILL_COLOR,
|
|
155
|
+
pot: POWERPOINT_ICON_FILL_COLOR,
|
|
156
|
+
pps: POWERPOINT_ICON_FILL_COLOR,
|
|
157
|
+
pptx: POWERPOINT_ICON_FILL_COLOR,
|
|
158
|
+
pptm: POWERPOINT_ICON_FILL_COLOR,
|
|
159
|
+
potx: POWERPOINT_ICON_FILL_COLOR,
|
|
160
|
+
potm: POWERPOINT_ICON_FILL_COLOR,
|
|
161
|
+
ppam: POWERPOINT_ICON_FILL_COLOR,
|
|
162
|
+
ppsx: POWERPOINT_ICON_FILL_COLOR,
|
|
163
|
+
ppsm: POWERPOINT_ICON_FILL_COLOR,
|
|
164
|
+
sldx: POWERPOINT_ICON_FILL_COLOR,
|
|
165
|
+
sldm: POWERPOINT_ICON_FILL_COLOR,
|
|
166
|
+
odp: PRESENTATION_ICON_FILL_COLOR,
|
|
167
|
+
key: PRESENTATION_ICON_FILL_COLOR,
|
|
168
|
+
xls: EXCEL_ICON_FILL_COLOR,
|
|
169
|
+
xlsx: EXCEL_ICON_FILL_COLOR,
|
|
170
|
+
csv: DEFAULT_ICON_FILL_COLOR,
|
|
171
|
+
numbers: SPREADSHEET_ICON_FILL_COLOR,
|
|
172
|
+
bmp: IMAGE_ICON_FILL_COLOR,
|
|
173
|
+
jpg: IMAGE_ICON_FILL_COLOR,
|
|
174
|
+
jpeg: IMAGE_ICON_FILL_COLOR,
|
|
175
|
+
heic: IMAGE_ICON_FILL_COLOR,
|
|
176
|
+
png: IMAGE_ICON_FILL_COLOR,
|
|
177
|
+
gif: IMAGE_ICON_FILL_COLOR,
|
|
178
|
+
psd: PRESENTATION_ICON_FILL_COLOR,
|
|
179
|
+
ai: DOCUMENT_ICON_FILL_COLOR,
|
|
180
|
+
svg: VECTOR_GRAPHIC_FILL_COLOR,
|
|
181
|
+
svgz: VECTOR_GRAPHIC_FILL_COLOR,
|
|
182
|
+
ep: VECTOR_GRAPHIC_FILL_COLOR,
|
|
183
|
+
eps: VECTOR_GRAPHIC_FILL_COLOR,
|
|
184
|
+
sketch: VECTOR_GRAPHIC_FILL_COLOR,
|
|
185
|
+
mp3: AUDIO_ICON_FILL_COLOR,
|
|
186
|
+
wav: AUDIO_ICON_FILL_COLOR,
|
|
187
|
+
wma: AUDIO_ICON_FILL_COLOR,
|
|
188
|
+
ogg: AUDIO_ICON_FILL_COLOR,
|
|
189
|
+
flv: VIDEO_ICON_FILL_COLOR,
|
|
190
|
+
h264: VIDEO_ICON_FILL_COLOR,
|
|
191
|
+
mov: VIDEO_ICON_FILL_COLOR,
|
|
192
|
+
mp4: VIDEO_ICON_FILL_COLOR,
|
|
193
|
+
mwv: VIDEO_ICON_FILL_COLOR,
|
|
194
|
+
zip: COMPRESSED_ICON_FILL_COLOR,
|
|
195
|
+
'7z': COMPRESSED_ICON_FILL_COLOR,
|
|
196
|
+
rar: COMPRESSED_ICON_FILL_COLOR,
|
|
197
|
+
json: DATA_ICON_FILL_COLOR,
|
|
198
|
+
yaml: DATA_ICON_FILL_COLOR,
|
|
199
|
+
sql: DATA_ICON_FILL_COLOR,
|
|
200
|
+
db: DATA_ICON_FILL_COLOR,
|
|
201
|
+
dbf: DATA_ICON_FILL_COLOR,
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
// Copy of file icon background colors from lime-elements.
|
|
205
|
+
// Source: lime-elements/src/components/file/icon-background-colors.ts
|
|
206
|
+
//
|
|
207
|
+
// Stencil doesn't support exporting utility functions from a component
|
|
208
|
+
// library, so we duplicate them here until a proper shared solution exists.
|
|
209
|
+
const DEFAULT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-gray-lighter), 0.4)';
|
|
210
|
+
const CALENDAR_ICON_BACKGROUND_COLOR = 'rgba(var(--color-cyan-lighter), 0.4)';
|
|
211
|
+
const EMAIL_ICON_BACKGROUND_COLOR = 'rgba(var(--color-gray-lighter), 0.4)';
|
|
212
|
+
const HTML_ICON_BACKGROUND_COLOR = 'rgba(var(--color-blue-lighter), 0.4)';
|
|
213
|
+
const TEXT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-yellow-lighter), 0.4)';
|
|
214
|
+
const EXCEL_ICON_BACKGROUND_COLOR = 'rgba(var(--color-green-lighter), 0.4)';
|
|
215
|
+
const POWERPOINT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-coral-lighter), 0.4)';
|
|
216
|
+
const WORD_ICON_BACKGROUND_COLOR = 'rgba(var(--color-sky-lighter), 0.4)';
|
|
217
|
+
const IMAGE_ICON_BACKGROUND_COLOR = 'rgba(var(--color-lime-lighter), 0.4)';
|
|
218
|
+
const VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR = 'rgba(var(--color-magenta-lighter), 0.4)';
|
|
219
|
+
const PRESENTATION_BACKGROUND_COLOR = 'rgba(var(--color-blue-lighter), 0.4)';
|
|
220
|
+
const DOCUMENT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-orange-lighter), 0.4)';
|
|
221
|
+
const SPREADSHEET_ICON_BACKGROUND_COLOR = 'rgba(var(--color-green-lighter), 0.4)';
|
|
222
|
+
const AUDIO_ICON_BACKGROUND_COLOR = 'rgba(var(--color-indigo-lighter), 0.4)';
|
|
223
|
+
const VIDEO_ICON_BACKGROUND_COLOR = 'rgba(var(--color-red-lighter), 0.4)';
|
|
224
|
+
const COMPRESSED_ICON_BACKGROUND_COLOR = 'rgba(var(--color-orange-lighter), 0.4)';
|
|
225
|
+
const MESSAGE_ICON_BACKGROUND_COLOR = 'rgba(var(--color-yellow-lighter), 0.4)';
|
|
226
|
+
const PDF_ICON_BACKGROUND_COLOR = 'rgba(var(--color-red-lighter), 0.4)';
|
|
227
|
+
const DATA_ICON_BACKGROUND_COLOR = 'rgba(var(--color-glaucous-lighter), 0.4)';
|
|
228
|
+
const DEFAULT_ICON_BACKGROUND = DEFAULT_ICON_BACKGROUND_COLOR;
|
|
229
|
+
const filetypeBackgroundColorTable = {
|
|
230
|
+
msg: MESSAGE_ICON_BACKGROUND_COLOR,
|
|
231
|
+
ics: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
232
|
+
ical: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
233
|
+
icalendar: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
234
|
+
ifb: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
235
|
+
email: EMAIL_ICON_BACKGROUND_COLOR,
|
|
236
|
+
eml: EMAIL_ICON_BACKGROUND_COLOR,
|
|
237
|
+
oft: EMAIL_ICON_BACKGROUND_COLOR,
|
|
238
|
+
ost: EMAIL_ICON_BACKGROUND_COLOR,
|
|
239
|
+
emlx: EMAIL_ICON_BACKGROUND_COLOR,
|
|
240
|
+
html: HTML_ICON_BACKGROUND_COLOR,
|
|
241
|
+
xml: HTML_ICON_BACKGROUND_COLOR,
|
|
242
|
+
txt: TEXT_ICON_BACKGROUND_COLOR,
|
|
243
|
+
rtf: TEXT_ICON_BACKGROUND_COLOR,
|
|
244
|
+
dot: WORD_ICON_BACKGROUND_COLOR,
|
|
245
|
+
doc: WORD_ICON_BACKGROUND_COLOR,
|
|
246
|
+
docx: WORD_ICON_BACKGROUND_COLOR,
|
|
247
|
+
dotx: WORD_ICON_BACKGROUND_COLOR,
|
|
248
|
+
docm: WORD_ICON_BACKGROUND_COLOR,
|
|
249
|
+
dotm: WORD_ICON_BACKGROUND_COLOR,
|
|
250
|
+
odt: DOCUMENT_ICON_BACKGROUND_COLOR,
|
|
251
|
+
pages: DOCUMENT_ICON_BACKGROUND_COLOR,
|
|
252
|
+
pdf: PDF_ICON_BACKGROUND_COLOR,
|
|
253
|
+
ppt: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
254
|
+
pot: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
255
|
+
pps: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
256
|
+
pptx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
257
|
+
pptm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
258
|
+
potx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
259
|
+
potm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
260
|
+
ppam: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
261
|
+
ppsx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
262
|
+
ppsm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
263
|
+
sldx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
264
|
+
sldm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
265
|
+
odp: PRESENTATION_BACKGROUND_COLOR,
|
|
266
|
+
key: PRESENTATION_BACKGROUND_COLOR,
|
|
267
|
+
xls: EXCEL_ICON_BACKGROUND_COLOR,
|
|
268
|
+
xlsx: EXCEL_ICON_BACKGROUND_COLOR,
|
|
269
|
+
csv: DEFAULT_ICON_BACKGROUND_COLOR,
|
|
270
|
+
numbers: SPREADSHEET_ICON_BACKGROUND_COLOR,
|
|
271
|
+
bmp: IMAGE_ICON_BACKGROUND_COLOR,
|
|
272
|
+
jpg: IMAGE_ICON_BACKGROUND_COLOR,
|
|
273
|
+
jpeg: IMAGE_ICON_BACKGROUND_COLOR,
|
|
274
|
+
heic: IMAGE_ICON_BACKGROUND_COLOR,
|
|
275
|
+
png: IMAGE_ICON_BACKGROUND_COLOR,
|
|
276
|
+
gif: IMAGE_ICON_BACKGROUND_COLOR,
|
|
277
|
+
psd: PRESENTATION_BACKGROUND_COLOR,
|
|
278
|
+
ai: DOCUMENT_ICON_BACKGROUND_COLOR,
|
|
279
|
+
svg: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
280
|
+
svgz: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
281
|
+
ep: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
282
|
+
eps: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
283
|
+
sketch: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
284
|
+
mp3: AUDIO_ICON_BACKGROUND_COLOR,
|
|
285
|
+
wav: AUDIO_ICON_BACKGROUND_COLOR,
|
|
286
|
+
wma: AUDIO_ICON_BACKGROUND_COLOR,
|
|
287
|
+
ogg: AUDIO_ICON_BACKGROUND_COLOR,
|
|
288
|
+
flv: VIDEO_ICON_BACKGROUND_COLOR,
|
|
289
|
+
h264: VIDEO_ICON_BACKGROUND_COLOR,
|
|
290
|
+
mov: VIDEO_ICON_BACKGROUND_COLOR,
|
|
291
|
+
mp4: VIDEO_ICON_BACKGROUND_COLOR,
|
|
292
|
+
mwv: VIDEO_ICON_BACKGROUND_COLOR,
|
|
293
|
+
zip: COMPRESSED_ICON_BACKGROUND_COLOR,
|
|
294
|
+
'7z': COMPRESSED_ICON_BACKGROUND_COLOR,
|
|
295
|
+
rar: COMPRESSED_ICON_BACKGROUND_COLOR,
|
|
296
|
+
json: DATA_ICON_BACKGROUND_COLOR,
|
|
297
|
+
yaml: DATA_ICON_BACKGROUND_COLOR,
|
|
298
|
+
sql: DATA_ICON_BACKGROUND_COLOR,
|
|
299
|
+
db: DATA_ICON_BACKGROUND_COLOR,
|
|
300
|
+
dbf: DATA_ICON_BACKGROUND_COLOR,
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Returns an icon with name, fill color, and background color
|
|
305
|
+
* based on the file extension of the given filename.
|
|
306
|
+
*
|
|
307
|
+
* @param filename - the filename to get the icon for
|
|
308
|
+
*/
|
|
309
|
+
function getFileIcon(filename) {
|
|
310
|
+
const extension = getFileExtension(filename);
|
|
311
|
+
return {
|
|
312
|
+
name: filetypeIconTable[extension] || DEFAULT_FILE_ICON,
|
|
313
|
+
color: filetypeFillColorTable[extension] || DEFAULT_ICON_FILL,
|
|
314
|
+
backgroundColor: filetypeBackgroundColorTable[extension] || DEFAULT_ICON_BACKGROUND,
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
const documentChipsCss = ":host(limebb-document-chips){box-sizing:border-box;display:flex;flex-wrap:wrap;gap:0.25rem;width:100%}*{box-sizing:border-box;min-width:0}limebb-summary-popover{max-width:100%}limel-chip{max-width:18rem}";
|
|
319
|
+
const LimebbDocumentChipsStyle0 = documentChipsCss;
|
|
320
|
+
|
|
321
|
+
const DocumentChips = class {
|
|
322
|
+
constructor(hostRef) {
|
|
323
|
+
registerInstance(this, hostRef);
|
|
324
|
+
this.removeFile = createEvent(this, "removeFile", 7);
|
|
325
|
+
/**
|
|
326
|
+
* The list of files to display as document chips.
|
|
327
|
+
*/
|
|
328
|
+
this.files = [];
|
|
329
|
+
this.blobUrls = new Map();
|
|
330
|
+
this.handleRemove = (event) => {
|
|
331
|
+
event.stopPropagation();
|
|
332
|
+
const fileId = event.detail;
|
|
333
|
+
this.revokeBlobUrl(fileId);
|
|
334
|
+
this.removeFile.emit(fileId);
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
onFilesChanged(newFiles, oldFiles) {
|
|
338
|
+
const currentIds = new Set(newFiles.map((file) => file.id));
|
|
339
|
+
for (const file of oldFiles) {
|
|
340
|
+
if (!currentIds.has(file.id)) {
|
|
341
|
+
this.revokeBlobUrl(file.id);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
disconnectedCallback() {
|
|
346
|
+
this.revokeAllBlobUrls();
|
|
347
|
+
}
|
|
348
|
+
render() {
|
|
349
|
+
return (h(Host, { key: '6c8347de35ccd6061c8fa282820210f6a3bcc2c8', role: "list", "aria-label": this.accessibleLabel }, this.files.map((file) => this.renderFile(file))));
|
|
350
|
+
}
|
|
351
|
+
renderFile(file) {
|
|
352
|
+
const isReady = !file.uploadState || file.uploadState === 'done';
|
|
353
|
+
const icon = this.getIcon(file);
|
|
354
|
+
const chip = (h("limel-chip", { role: isReady ? undefined : 'listitem', slot: isReady ? 'trigger' : undefined, removable: true, identifier: file.id, text: file.filename, icon: icon, invalid: file.uploadState === 'failed', progress: file.uploadState === 'uploading'
|
|
355
|
+
? file.uploadProgress
|
|
356
|
+
: undefined, loading: file.uploadState === 'added' ||
|
|
357
|
+
file.uploadState === 'finalizing', onRemove: this.handleRemove }));
|
|
358
|
+
if (!isReady) {
|
|
359
|
+
return chip;
|
|
360
|
+
}
|
|
361
|
+
return (h("limebb-summary-popover", { role: "listitem", file: Object.assign(Object.assign({}, file), { href: this.getPreviewUrl(file) }), popoverMaxWidth: "32rem", popoverMaxHeight: "32rem", triggerDelay: 1000 }, chip));
|
|
362
|
+
}
|
|
363
|
+
getIcon(file) {
|
|
364
|
+
if (file.icon) {
|
|
365
|
+
return file.icon;
|
|
366
|
+
}
|
|
367
|
+
return getFileIcon(file.filename);
|
|
368
|
+
}
|
|
369
|
+
getPreviewUrl(file) {
|
|
370
|
+
const extension = getFileExtension(file.filename);
|
|
371
|
+
const previewType = getPreviewType(extension);
|
|
372
|
+
if (previewType === 'sharepoint') {
|
|
373
|
+
return undefined;
|
|
374
|
+
}
|
|
375
|
+
if (file.href) {
|
|
376
|
+
return file.href;
|
|
377
|
+
}
|
|
378
|
+
if (file.fileContent) {
|
|
379
|
+
if (!this.blobUrls.has(file.id)) {
|
|
380
|
+
this.blobUrls.set(file.id, URL.createObjectURL(file.fileContent));
|
|
381
|
+
}
|
|
382
|
+
return this.blobUrls.get(file.id);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
revokeBlobUrl(fileId) {
|
|
386
|
+
const url = this.blobUrls.get(fileId);
|
|
387
|
+
if (url) {
|
|
388
|
+
URL.revokeObjectURL(url);
|
|
389
|
+
this.blobUrls.delete(fileId);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
revokeAllBlobUrls() {
|
|
393
|
+
for (const url of this.blobUrls.values())
|
|
394
|
+
URL.revokeObjectURL(url);
|
|
395
|
+
this.blobUrls.clear();
|
|
396
|
+
}
|
|
397
|
+
static get watchers() { return {
|
|
398
|
+
"files": ["onFilesChanged"]
|
|
399
|
+
}; }
|
|
400
|
+
};
|
|
401
|
+
DocumentChips.style = LimebbDocumentChipsStyle0;
|
|
402
|
+
|
|
403
|
+
export { DocumentChips as limebb_document_chips };
|
|
@@ -115,10 +115,10 @@ const DocumentItemComponent = class {
|
|
|
115
115
|
render() {
|
|
116
116
|
const isUnavailable = this.isUnavailable();
|
|
117
117
|
const image = this.getImage();
|
|
118
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: 'b8c73e13073f66162b66a62f88b8b301a6a139d4', id: String(this.item.file.id), class: {
|
|
119
119
|
'has-image': !!image,
|
|
120
120
|
'has-error': !!this.item.hasError,
|
|
121
|
-
}, role: this.type === 'radio' ? 'radio' : 'checkbox', "aria-checked": this.item.selected ? 'true' : 'false', "aria-disabled": isUnavailable ? 'true' : 'false', tabIndex: isUnavailable ? -1 : 0 }, h("limel-card", { key: '
|
|
121
|
+
}, role: this.type === 'radio' ? 'radio' : 'checkbox', "aria-checked": this.item.selected ? 'true' : 'false', "aria-disabled": isUnavailable ? 'true' : 'false', tabIndex: isUnavailable ? -1 : 0 }, h("limel-card", { key: '19cf30dc7a3ce2647ddc2abbd177b9f18db8001d', image: image, clickable: isUnavailable ? false : true, onClick: this.handleDocumentItemClick, onKeyDown: this.handleKeyDown }, h("div", { key: 'd3a2c411d3cbbe4e554f9701af6f2191a4b2078d', slot: "component" }, this.renderFileSize(), this.renderBooleanInput())), this.renderHelp()));
|
|
122
122
|
}
|
|
123
123
|
renderBooleanInput() {
|
|
124
124
|
const id = this.getControlId();
|
|
@@ -67,7 +67,7 @@ const DocumentPicker = class {
|
|
|
67
67
|
this.labelId = createRandomString();
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '8f6613354bdee3af42920f78325b2e1a76bbf91e' }, h("limel-notched-outline", { key: '9b4b665b76f4c1fc1047052824c7cff1dcd7c495', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid, hasFloatingLabel: true }, h("limel-masonry-layout", { key: '1578066ee0b76f4344389a91c68b09b5955bae90', slot: "content", role: this.type === 'radio' ? 'radiogroup' : 'group', "aria-labelledby": this.label ? this.labelId : undefined, "aria-describedby": this.helperText ? this.helperTextId : undefined }, this.renderItems())), this.renderHelperLine()));
|
|
71
71
|
}
|
|
72
72
|
renderItems() {
|
|
73
73
|
return this.items.map((item) => (h("limebb-document-item", { platform: this.platform, context: this.context, item: item, key: item.file.id, type: this.type, onInteract: this.handleItemInteract })));
|
|
@@ -8,7 +8,7 @@ const FeedItemThumbnailFileInfo = class {
|
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: 'e651265e23288802ee6d89e3cfe5e0f7bd8073c3' }, this.description);
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
FeedItemThumbnailFileInfo.style = LimebbFeedItemThumbnailFileInfoStyle0;
|
|
@@ -205,7 +205,7 @@ const FeedTimelineItem = class {
|
|
|
205
205
|
render() {
|
|
206
206
|
var _a, _b;
|
|
207
207
|
const helperTextId = `helper-text-${this.item.id}`;
|
|
208
|
-
return (h(Host, { key: '
|
|
208
|
+
return (h(Host, { key: 'de138a29c33bcf4b77e6699b4ecc5dd4acde1c56', id: this.item.id, class: {
|
|
209
209
|
'has-unpromoted-actions': !!((_a = this.item.unpromotedActions) === null || _a === void 0 ? void 0 : _a.length),
|
|
210
210
|
'has-author-picture': !!((_b = this.item.author) === null || _b === void 0 ? void 0 : _b.picture),
|
|
211
211
|
'shows-less': !this.showMore,
|
|
@@ -237,7 +237,7 @@ const Feed = class {
|
|
|
237
237
|
this.highlighter.unregisterFeed(this.feedItemElement);
|
|
238
238
|
}
|
|
239
239
|
render() {
|
|
240
|
-
return (h(Host, { key: '
|
|
240
|
+
return (h(Host, { key: 'b56f2996447a80c5cf12f83fce2ca05de53553e4', role: "log", "aria-busy": this.loading ? 'true' : 'false', style: {
|
|
241
241
|
'--limebb-feed-highlight-duration': `${ITEM_HIGHLIGHT_DURATION}ms`,
|
|
242
242
|
} }, this.renderLoadMore(), this.renderEmptyFeedMessage(), this.renderSpinner(), this.renderFeedItems()));
|
|
243
243
|
}
|
|
@@ -52993,7 +52993,7 @@ const IconPicker = class {
|
|
|
52993
52993
|
icon: this.value,
|
|
52994
52994
|
};
|
|
52995
52995
|
}
|
|
52996
|
-
return (h("limel-picker", { key: '
|
|
52996
|
+
return (h("limel-picker", { key: 'd86348e6a8d4e6aa03ac880565cfd53eccfa4aff', label: this.label, helperText: this.helperText, disabled: this.disabled, readonly: this.readonly, invalid: this.invalid, required: this.required, value: value, searcher: this.search, onChange: this.handleChange, badgeIcons: false, leadingIcon: "search", searchLabel: "Start typing to find the right icon" }));
|
|
52997
52997
|
}
|
|
52998
52998
|
};
|
|
52999
52999
|
|
|
@@ -92,7 +92,7 @@ const InfoTileAdminConfig = class {
|
|
|
92
92
|
},
|
|
93
93
|
];
|
|
94
94
|
return [
|
|
95
|
-
h("limel-button-group", { key: '
|
|
95
|
+
h("limel-button-group", { key: 'cac8e4793eb19e3f4d959a7a53115954b190eddf', value: buttons.filter(this.isValidButton), onChange: this.handleChangeType }),
|
|
96
96
|
this.renderFormatConfig(),
|
|
97
97
|
];
|
|
98
98
|
}
|
|
@@ -433,7 +433,7 @@ const InfoTile = class {
|
|
|
433
433
|
const errorProps = Object.assign(Object.assign({}, baseProps), { icon: 'error', prefix: 'ERROR', loading: true, label: this.getLabel(filter) });
|
|
434
434
|
const normalProps = Object.assign(Object.assign({}, baseProps), { label: this.getLabel(filter), link: this.getLink(filter), loading: this.loading, value: value === null || value === void 0 ? void 0 : value.value.trim() });
|
|
435
435
|
const props = !filter || this.error ? errorProps : normalProps;
|
|
436
|
-
return (h("limel-info-tile", Object.assign({ key: '
|
|
436
|
+
return (h("limel-info-tile", Object.assign({ key: '1211ee931d2cf7a5a3c13896515812ddbcab29f2', class: { error: !filter || this.error } }, props)));
|
|
437
437
|
}
|
|
438
438
|
getFormattedValue() {
|
|
439
439
|
if (!this.value && this.value !== 0) {
|
|
@@ -28,7 +28,7 @@ const KanbanGroup = class {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '45122f5462476d2c0c9a44af4c5281ef510fdea1' }, this.renderHelp(), this.renderGroupHeading(), this.renderGroupSummary(), this.renderItems()));
|
|
32
32
|
}
|
|
33
33
|
renderGroupSummary() {
|
|
34
34
|
if (!this.summary || !this.totalCount) {
|
|
@@ -56,7 +56,7 @@ const KanbanItemComponent = class {
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
var _a, _b;
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: 'b426be161e49623843ff6c47cddad048177ca441', id: this.item.id.toString(), class: {
|
|
60
60
|
'has-unpromoted-actions': !!((_a = this.item.unpromotedActions) === null || _a === void 0 ? void 0 : _a.length),
|
|
61
61
|
'is-selected': !!((_b = this.item) === null || _b === void 0 ? void 0 : _b.selected),
|
|
62
62
|
}, style: {
|
|
@@ -150,7 +150,7 @@ const LimeQueryBuilder = class {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
render() {
|
|
153
|
-
return (h(Host, { key: '
|
|
153
|
+
return (h(Host, { key: '883901b3f445419dad53e7c02dd160ad7483c0cb' }, this.renderHeader(), this.renderContent()));
|
|
154
154
|
}
|
|
155
155
|
renderContent() {
|
|
156
156
|
const visualModeSupported = this.checkVisualModeSupport();
|
|
@@ -195,7 +195,7 @@ const OrderByEditor = class {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
render() {
|
|
198
|
-
return (h(Host, { key: '
|
|
198
|
+
return (h(Host, { key: 'accbc6c9e4d55d7480a0742da0bc96db3077fbf1' }, this.renderEmptyState(), this.renderOrderByEditor()));
|
|
199
199
|
}
|
|
200
200
|
renderEmptyState() {
|
|
201
201
|
if (this.limetype) {
|
|
@@ -323,7 +323,7 @@ const LimetypeField = class {
|
|
|
323
323
|
value: '',
|
|
324
324
|
};
|
|
325
325
|
options.unshift(emptyOption);
|
|
326
|
-
return (h("limel-select", { key: '
|
|
326
|
+
return (h("limel-select", { key: '6157ed54a38920f001fa79b5a39c48b677826dd5', label: this.label, options: options, value: selectedOption, required: this.required, helperText: this.helperText, invalid: invalid, disabled: this.disabled || this.readonly, onChange: this.handleChange }));
|
|
327
327
|
}
|
|
328
328
|
componentWillRender() {
|
|
329
329
|
this.updatePropertyFields(this.value || '');
|
|
@@ -106,7 +106,7 @@ const LimeQueryFilterComparisonComponent = class {
|
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: '008be722e21a16f4e2f80f655f70a564a9b1e38d' }, this.renderHeader(), h("div", { key: '2cd041b142596671c7ead3849406b8fa65c29926', class: "expression-container" }, this.renderPropertySelector(), this.renderOperator(), this.renderValueInput(), h("limel-icon-button", { key: '1fb2fc8a0cec0b70f5d3c24a976f0f436a294eae', class: "remove", icon: "trash", label: "Remove condition", onClick: this.removeExpression }))));
|
|
110
110
|
}
|
|
111
111
|
renderHeader() {
|
|
112
112
|
if (!this.label) {
|
|
@@ -180,9 +180,9 @@ const LimeQueryFilterGroupComponent = class {
|
|
|
180
180
|
(this.expression.op === re.AND ? 'and' : 'or')) || this.options[0];
|
|
181
181
|
}
|
|
182
182
|
render() {
|
|
183
|
-
return (h(Host, { key: '
|
|
183
|
+
return (h(Host, { key: 'a93a715b9bd65e6e9381083aef11951588471fc5', style: {
|
|
184
184
|
'--limebb-lime-query-filter-group-operator': `"${this.expression.op === re.AND ? 'AND' : 'OR'}"`,
|
|
185
|
-
} }, h("div", { key: '
|
|
185
|
+
} }, h("div", { key: 'efbf025924e34613504f38db66affa1650bfe70c', class: "expression" }, this.renderHeader(), h("ul", { key: '6e287058fb7969124e4f22b42b32b14d80c0511f' }, this.expression.exp.map(this.renderChildExpression), this.renderAddButton()), this.renderAddGroupButton())));
|
|
186
186
|
}
|
|
187
187
|
renderHeader() {
|
|
188
188
|
const subheading = this.getSubheading();
|
|
@@ -237,7 +237,7 @@ const LimeQueryFilterNotComponent = class {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
render() {
|
|
240
|
-
return (h("div", { key: '
|
|
240
|
+
return (h("div", { key: '2967dd36cabe81bc1f140be7d11d471b1f29f5e7', class: "expression" }, this.label && h("limel-header", { key: '5a7ab204d8c0d45706ad61b1db8d1ef3acfb0731', heading: this.label }), h("limebb-lime-query-filter-expression", { key: 'ee8ea7f9eeb111d77abbcecd98d61e550ff8cdb9', platform: this.platform, context: this.context, label: "Not", limetype: this.limetype, activeLimetype: this.activeLimetype, expression: this.expression.exp, onExpressionChange: this.handleExpressionChange })));
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
243
|
LimeQueryFilterNotComponent.style = LimebbLimeQueryFilterNotStyle0;
|
|
@@ -37,9 +37,9 @@ const OrderByItemComponent = class {
|
|
|
37
37
|
render() {
|
|
38
38
|
const propertyPath = Object.keys(this.item)[0] || '';
|
|
39
39
|
const direction = this.item[propertyPath] || 'ASC';
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'd9acb6f013d44d467410a7ed0f318d668bf54055' }, h("limebb-property-selector", { key: '419cfc3264a1fcae40888cc43f5c60a68f2f23db', platform: this.platform, context: this.context, limetype: this.limetype, label: "Property", value: propertyPath, required: true, onChange: this.handlePathChange }), h("div", { key: 'b85f69b1596a61d6d0b63cf857e5b0382f2b6e8c', class: "control-buttons" }, h("limel-icon-button", { key: 'd7beb38b2452bd41ab1cd5f273292c9e58be15cf', icon: direction === 'ASC'
|
|
41
41
|
? 'sort_ascending'
|
|
42
|
-
: 'sort_descending', label: direction === 'ASC' ? 'Ascending' : 'Descending', onClick: this.handleToggleDirection }), h("limel-icon-button", { key: '
|
|
42
|
+
: 'sort_descending', label: direction === 'ASC' ? 'Ascending' : 'Descending', onClick: this.handleToggleDirection }), h("limel-icon-button", { key: '0407b6a44822a4ee182aa95140fe8d9fd01dc377', icon: "trash", label: "Remove", onClick: this.handleRemove }))));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
OrderByItemComponent.style = LimebbLimeQueryOrderByItemStyle0;
|
|
@@ -192,7 +192,7 @@ const LimeQueryResponseFormatBuilder = class {
|
|
|
192
192
|
}
|
|
193
193
|
render() {
|
|
194
194
|
const visualModeSupported = this.checkVisualModeSupport();
|
|
195
|
-
return (h("div", { key: '
|
|
195
|
+
return (h("div", { key: '7f4adae0e3f4d14194fc558600db983f45fe760a', class: "response-format-builder" }, this.label && h("h1", { key: 'eeb78bdccf2f8e344de742618b72a7bb341e5bf5', class: "builder-label" }, this.label), this.helperText && (h("p", { key: '03ff96e0645d03377b28c048f02d868046f17903', class: "builder-helper-text" }, this.helperText)), this.visualModeEnabled && (h("div", { key: '65ca3551326e0ec4deff00aff4a19aec2fee9702', class: "mode-controls" }, this.renderModeSwitch(visualModeSupported))), !this.visualModeEnabled || this.mode === 'code' ? (h("div", { class: "code-mode" }, this.renderCodeEditor(visualModeSupported))) : (h("div", { class: "visual-mode" }, this.renderVisualMode()))));
|
|
196
196
|
}
|
|
197
197
|
renderModeSwitch(support) {
|
|
198
198
|
const visualDisabled = !support.visualModeSupported;
|
|
@@ -359,7 +359,7 @@ const ResponseFormatItem = class {
|
|
|
359
359
|
}
|
|
360
360
|
render() {
|
|
361
361
|
return [
|
|
362
|
-
h("div", { key: '
|
|
362
|
+
h("div", { key: '5f95a0ebd3f9eb632405f2bf8f1ac14a00042c5a', class: "property-controls" }, h("div", { key: '26d132043bf28e243749b97f7e5d3e439b2756dc', class: "property-path" }, h("limebb-property-selector", { key: '7c7616d91cd4a51648e22171ba921e7586b2e1f0', platform: this.platform, context: this.context, limetype: this.limetype, label: "Property", value: this.item.path, required: true, onChange: this.handlePathChange }), h("div", { key: '805a1a1776eaf1c1e46ebeabe899d6c0d0576043', class: "input-grid" }, this.renderAliasInput()), h("div", { key: 'd38b4d3b5d9e58a112dbadcf847102aa29659ddb', class: "input-grid" }, this.renderDescriptionInput()), h("div", { key: '7cecdf95dc03bc55ab267c8357139360cde63a1c', class: "button-group" }, this.renderAliasButton(), this.renderDescriptionButton())), h("limel-icon-button", { key: '1e98658175aa6c02abc647425c87f8f4e9680520', icon: "trash", label: "Remove property", onClick: this.handleRemove })),
|
|
363
363
|
];
|
|
364
364
|
}
|
|
365
365
|
renderAliasButton() {
|