@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,98 @@
|
|
|
1
|
+
// Copy of file icon background colors from lime-elements.
|
|
2
|
+
// Source: lime-elements/src/components/file/icon-background-colors.ts
|
|
3
|
+
//
|
|
4
|
+
// Stencil doesn't support exporting utility functions from a component
|
|
5
|
+
// library, so we duplicate them here until a proper shared solution exists.
|
|
6
|
+
const DEFAULT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-gray-lighter), 0.4)';
|
|
7
|
+
const CALENDAR_ICON_BACKGROUND_COLOR = 'rgba(var(--color-cyan-lighter), 0.4)';
|
|
8
|
+
const EMAIL_ICON_BACKGROUND_COLOR = 'rgba(var(--color-gray-lighter), 0.4)';
|
|
9
|
+
const HTML_ICON_BACKGROUND_COLOR = 'rgba(var(--color-blue-lighter), 0.4)';
|
|
10
|
+
const TEXT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-yellow-lighter), 0.4)';
|
|
11
|
+
const EXCEL_ICON_BACKGROUND_COLOR = 'rgba(var(--color-green-lighter), 0.4)';
|
|
12
|
+
const POWERPOINT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-coral-lighter), 0.4)';
|
|
13
|
+
const WORD_ICON_BACKGROUND_COLOR = 'rgba(var(--color-sky-lighter), 0.4)';
|
|
14
|
+
const IMAGE_ICON_BACKGROUND_COLOR = 'rgba(var(--color-lime-lighter), 0.4)';
|
|
15
|
+
const VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR = 'rgba(var(--color-magenta-lighter), 0.4)';
|
|
16
|
+
const PRESENTATION_BACKGROUND_COLOR = 'rgba(var(--color-blue-lighter), 0.4)';
|
|
17
|
+
const DOCUMENT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-orange-lighter), 0.4)';
|
|
18
|
+
const SPREADSHEET_ICON_BACKGROUND_COLOR = 'rgba(var(--color-green-lighter), 0.4)';
|
|
19
|
+
const AUDIO_ICON_BACKGROUND_COLOR = 'rgba(var(--color-indigo-lighter), 0.4)';
|
|
20
|
+
const VIDEO_ICON_BACKGROUND_COLOR = 'rgba(var(--color-red-lighter), 0.4)';
|
|
21
|
+
const COMPRESSED_ICON_BACKGROUND_COLOR = 'rgba(var(--color-orange-lighter), 0.4)';
|
|
22
|
+
const MESSAGE_ICON_BACKGROUND_COLOR = 'rgba(var(--color-yellow-lighter), 0.4)';
|
|
23
|
+
const PDF_ICON_BACKGROUND_COLOR = 'rgba(var(--color-red-lighter), 0.4)';
|
|
24
|
+
const DATA_ICON_BACKGROUND_COLOR = 'rgba(var(--color-glaucous-lighter), 0.4)';
|
|
25
|
+
export const DEFAULT_ICON_BACKGROUND = DEFAULT_ICON_BACKGROUND_COLOR;
|
|
26
|
+
export const filetypeBackgroundColorTable = {
|
|
27
|
+
msg: MESSAGE_ICON_BACKGROUND_COLOR,
|
|
28
|
+
ics: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
29
|
+
ical: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
30
|
+
icalendar: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
31
|
+
ifb: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
32
|
+
email: EMAIL_ICON_BACKGROUND_COLOR,
|
|
33
|
+
eml: EMAIL_ICON_BACKGROUND_COLOR,
|
|
34
|
+
oft: EMAIL_ICON_BACKGROUND_COLOR,
|
|
35
|
+
ost: EMAIL_ICON_BACKGROUND_COLOR,
|
|
36
|
+
emlx: EMAIL_ICON_BACKGROUND_COLOR,
|
|
37
|
+
html: HTML_ICON_BACKGROUND_COLOR,
|
|
38
|
+
xml: HTML_ICON_BACKGROUND_COLOR,
|
|
39
|
+
txt: TEXT_ICON_BACKGROUND_COLOR,
|
|
40
|
+
rtf: TEXT_ICON_BACKGROUND_COLOR,
|
|
41
|
+
dot: WORD_ICON_BACKGROUND_COLOR,
|
|
42
|
+
doc: WORD_ICON_BACKGROUND_COLOR,
|
|
43
|
+
docx: WORD_ICON_BACKGROUND_COLOR,
|
|
44
|
+
dotx: WORD_ICON_BACKGROUND_COLOR,
|
|
45
|
+
docm: WORD_ICON_BACKGROUND_COLOR,
|
|
46
|
+
dotm: WORD_ICON_BACKGROUND_COLOR,
|
|
47
|
+
odt: DOCUMENT_ICON_BACKGROUND_COLOR,
|
|
48
|
+
pages: DOCUMENT_ICON_BACKGROUND_COLOR,
|
|
49
|
+
pdf: PDF_ICON_BACKGROUND_COLOR,
|
|
50
|
+
ppt: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
51
|
+
pot: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
52
|
+
pps: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
53
|
+
pptx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
54
|
+
pptm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
55
|
+
potx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
56
|
+
potm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
57
|
+
ppam: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
58
|
+
ppsx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
59
|
+
ppsm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
60
|
+
sldx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
61
|
+
sldm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
62
|
+
odp: PRESENTATION_BACKGROUND_COLOR,
|
|
63
|
+
key: PRESENTATION_BACKGROUND_COLOR,
|
|
64
|
+
xls: EXCEL_ICON_BACKGROUND_COLOR,
|
|
65
|
+
xlsx: EXCEL_ICON_BACKGROUND_COLOR,
|
|
66
|
+
csv: DEFAULT_ICON_BACKGROUND_COLOR,
|
|
67
|
+
numbers: SPREADSHEET_ICON_BACKGROUND_COLOR,
|
|
68
|
+
bmp: IMAGE_ICON_BACKGROUND_COLOR,
|
|
69
|
+
jpg: IMAGE_ICON_BACKGROUND_COLOR,
|
|
70
|
+
jpeg: IMAGE_ICON_BACKGROUND_COLOR,
|
|
71
|
+
heic: IMAGE_ICON_BACKGROUND_COLOR,
|
|
72
|
+
png: IMAGE_ICON_BACKGROUND_COLOR,
|
|
73
|
+
gif: IMAGE_ICON_BACKGROUND_COLOR,
|
|
74
|
+
psd: PRESENTATION_BACKGROUND_COLOR,
|
|
75
|
+
ai: DOCUMENT_ICON_BACKGROUND_COLOR,
|
|
76
|
+
svg: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
77
|
+
svgz: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
78
|
+
ep: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
79
|
+
eps: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
80
|
+
sketch: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
81
|
+
mp3: AUDIO_ICON_BACKGROUND_COLOR,
|
|
82
|
+
wav: AUDIO_ICON_BACKGROUND_COLOR,
|
|
83
|
+
wma: AUDIO_ICON_BACKGROUND_COLOR,
|
|
84
|
+
ogg: AUDIO_ICON_BACKGROUND_COLOR,
|
|
85
|
+
flv: VIDEO_ICON_BACKGROUND_COLOR,
|
|
86
|
+
h264: VIDEO_ICON_BACKGROUND_COLOR,
|
|
87
|
+
mov: VIDEO_ICON_BACKGROUND_COLOR,
|
|
88
|
+
mp4: VIDEO_ICON_BACKGROUND_COLOR,
|
|
89
|
+
mwv: VIDEO_ICON_BACKGROUND_COLOR,
|
|
90
|
+
zip: COMPRESSED_ICON_BACKGROUND_COLOR,
|
|
91
|
+
'7z': COMPRESSED_ICON_BACKGROUND_COLOR,
|
|
92
|
+
rar: COMPRESSED_ICON_BACKGROUND_COLOR,
|
|
93
|
+
json: DATA_ICON_BACKGROUND_COLOR,
|
|
94
|
+
yaml: DATA_ICON_BACKGROUND_COLOR,
|
|
95
|
+
sql: DATA_ICON_BACKGROUND_COLOR,
|
|
96
|
+
db: DATA_ICON_BACKGROUND_COLOR,
|
|
97
|
+
dbf: DATA_ICON_BACKGROUND_COLOR,
|
|
98
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// Copy of file icon fill colors from lime-elements.
|
|
2
|
+
// Source: lime-elements/src/components/file/icon-fill-colors.ts
|
|
3
|
+
//
|
|
4
|
+
// Stencil doesn't support exporting utility functions from a component
|
|
5
|
+
// library, so we duplicate them here until a proper shared solution exists.
|
|
6
|
+
const DEFAULT_ICON_FILL_COLOR = 'rgb(var(--color-gray-dark))';
|
|
7
|
+
const CALENDAR_ICON_FILL_COLOR = 'rgb(var(--color-cyan-dark))';
|
|
8
|
+
const EMAIL_ICON_FILL_COLOR = 'rgb(var(--color-gray-dark))';
|
|
9
|
+
const HTML_ICON_FILL_COLOR = 'rgb(var(--color-blue-dark))';
|
|
10
|
+
const TEXT_ICON_FILL_COLOR = 'rgb(var(--color-yellow-darker))';
|
|
11
|
+
const EXCEL_ICON_FILL_COLOR = 'rgb(var(--color-green-dark))';
|
|
12
|
+
const POWERPOINT_ICON_FILL_COLOR = 'rgb(var(--color-coral-dark))';
|
|
13
|
+
const WORD_ICON_FILL_COLOR = 'rgb(var(--color-sky-dark))';
|
|
14
|
+
const IMAGE_ICON_FILL_COLOR = 'rgb(var(--color-lime-dark))';
|
|
15
|
+
const VECTOR_GRAPHIC_FILL_COLOR = 'rgb(var(--color-magenta-dark))';
|
|
16
|
+
const PRESENTATION_ICON_FILL_COLOR = 'rgb(var(--color-blue-dark))';
|
|
17
|
+
const DOCUMENT_ICON_FILL_COLOR = 'rgb(var(--color-orange-dark))';
|
|
18
|
+
const SPREADSHEET_ICON_FILL_COLOR = 'rgb(var(--color-green-dark))';
|
|
19
|
+
const AUDIO_ICON_FILL_COLOR = 'rgb(var(--color-indigo-dark))';
|
|
20
|
+
const VIDEO_ICON_FILL_COLOR = 'rgb(var(--color-red-dark))';
|
|
21
|
+
const COMPRESSED_ICON_FILL_COLOR = 'rgb(var(--color-brown-default))';
|
|
22
|
+
const MESSAGE_ICON_FILL_COLOR = 'rgb(var(--color-yellow-dark))';
|
|
23
|
+
const PDF_ICON_FILL_COLOR = 'rgb(var(--color-red-dark))';
|
|
24
|
+
const DATA_ICON_FILL_COLOR = 'rgb(var(--color-glaucous-dark))';
|
|
25
|
+
export const DEFAULT_ICON_FILL = DEFAULT_ICON_FILL_COLOR;
|
|
26
|
+
export const filetypeFillColorTable = {
|
|
27
|
+
msg: MESSAGE_ICON_FILL_COLOR,
|
|
28
|
+
ics: CALENDAR_ICON_FILL_COLOR,
|
|
29
|
+
ical: CALENDAR_ICON_FILL_COLOR,
|
|
30
|
+
icalendar: CALENDAR_ICON_FILL_COLOR,
|
|
31
|
+
ifb: CALENDAR_ICON_FILL_COLOR,
|
|
32
|
+
email: EMAIL_ICON_FILL_COLOR,
|
|
33
|
+
eml: EMAIL_ICON_FILL_COLOR,
|
|
34
|
+
oft: EMAIL_ICON_FILL_COLOR,
|
|
35
|
+
ost: EMAIL_ICON_FILL_COLOR,
|
|
36
|
+
emlx: EMAIL_ICON_FILL_COLOR,
|
|
37
|
+
html: HTML_ICON_FILL_COLOR,
|
|
38
|
+
xml: HTML_ICON_FILL_COLOR,
|
|
39
|
+
txt: TEXT_ICON_FILL_COLOR,
|
|
40
|
+
rtf: TEXT_ICON_FILL_COLOR,
|
|
41
|
+
dot: WORD_ICON_FILL_COLOR,
|
|
42
|
+
doc: WORD_ICON_FILL_COLOR,
|
|
43
|
+
docx: WORD_ICON_FILL_COLOR,
|
|
44
|
+
dotx: WORD_ICON_FILL_COLOR,
|
|
45
|
+
docm: WORD_ICON_FILL_COLOR,
|
|
46
|
+
dotm: WORD_ICON_FILL_COLOR,
|
|
47
|
+
odt: DOCUMENT_ICON_FILL_COLOR,
|
|
48
|
+
pages: DOCUMENT_ICON_FILL_COLOR,
|
|
49
|
+
pdf: PDF_ICON_FILL_COLOR,
|
|
50
|
+
ppt: POWERPOINT_ICON_FILL_COLOR,
|
|
51
|
+
pot: POWERPOINT_ICON_FILL_COLOR,
|
|
52
|
+
pps: POWERPOINT_ICON_FILL_COLOR,
|
|
53
|
+
pptx: POWERPOINT_ICON_FILL_COLOR,
|
|
54
|
+
pptm: POWERPOINT_ICON_FILL_COLOR,
|
|
55
|
+
potx: POWERPOINT_ICON_FILL_COLOR,
|
|
56
|
+
potm: POWERPOINT_ICON_FILL_COLOR,
|
|
57
|
+
ppam: POWERPOINT_ICON_FILL_COLOR,
|
|
58
|
+
ppsx: POWERPOINT_ICON_FILL_COLOR,
|
|
59
|
+
ppsm: POWERPOINT_ICON_FILL_COLOR,
|
|
60
|
+
sldx: POWERPOINT_ICON_FILL_COLOR,
|
|
61
|
+
sldm: POWERPOINT_ICON_FILL_COLOR,
|
|
62
|
+
odp: PRESENTATION_ICON_FILL_COLOR,
|
|
63
|
+
key: PRESENTATION_ICON_FILL_COLOR,
|
|
64
|
+
xls: EXCEL_ICON_FILL_COLOR,
|
|
65
|
+
xlsx: EXCEL_ICON_FILL_COLOR,
|
|
66
|
+
csv: DEFAULT_ICON_FILL_COLOR,
|
|
67
|
+
numbers: SPREADSHEET_ICON_FILL_COLOR,
|
|
68
|
+
bmp: IMAGE_ICON_FILL_COLOR,
|
|
69
|
+
jpg: IMAGE_ICON_FILL_COLOR,
|
|
70
|
+
jpeg: IMAGE_ICON_FILL_COLOR,
|
|
71
|
+
heic: IMAGE_ICON_FILL_COLOR,
|
|
72
|
+
png: IMAGE_ICON_FILL_COLOR,
|
|
73
|
+
gif: IMAGE_ICON_FILL_COLOR,
|
|
74
|
+
psd: PRESENTATION_ICON_FILL_COLOR,
|
|
75
|
+
ai: DOCUMENT_ICON_FILL_COLOR,
|
|
76
|
+
svg: VECTOR_GRAPHIC_FILL_COLOR,
|
|
77
|
+
svgz: VECTOR_GRAPHIC_FILL_COLOR,
|
|
78
|
+
ep: VECTOR_GRAPHIC_FILL_COLOR,
|
|
79
|
+
eps: VECTOR_GRAPHIC_FILL_COLOR,
|
|
80
|
+
sketch: VECTOR_GRAPHIC_FILL_COLOR,
|
|
81
|
+
mp3: AUDIO_ICON_FILL_COLOR,
|
|
82
|
+
wav: AUDIO_ICON_FILL_COLOR,
|
|
83
|
+
wma: AUDIO_ICON_FILL_COLOR,
|
|
84
|
+
ogg: AUDIO_ICON_FILL_COLOR,
|
|
85
|
+
flv: VIDEO_ICON_FILL_COLOR,
|
|
86
|
+
h264: VIDEO_ICON_FILL_COLOR,
|
|
87
|
+
mov: VIDEO_ICON_FILL_COLOR,
|
|
88
|
+
mp4: VIDEO_ICON_FILL_COLOR,
|
|
89
|
+
mwv: VIDEO_ICON_FILL_COLOR,
|
|
90
|
+
zip: COMPRESSED_ICON_FILL_COLOR,
|
|
91
|
+
'7z': COMPRESSED_ICON_FILL_COLOR,
|
|
92
|
+
rar: COMPRESSED_ICON_FILL_COLOR,
|
|
93
|
+
json: DATA_ICON_FILL_COLOR,
|
|
94
|
+
yaml: DATA_ICON_FILL_COLOR,
|
|
95
|
+
sql: DATA_ICON_FILL_COLOR,
|
|
96
|
+
db: DATA_ICON_FILL_COLOR,
|
|
97
|
+
dbf: DATA_ICON_FILL_COLOR,
|
|
98
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getFileExtension } from "./file-extension";
|
|
2
|
+
import { DEFAULT_FILE_ICON, filetypeIconTable } from "./file-icons";
|
|
3
|
+
import { DEFAULT_ICON_FILL, filetypeFillColorTable, } from "./file-icon-fill-colors";
|
|
4
|
+
import { DEFAULT_ICON_BACKGROUND, filetypeBackgroundColorTable, } from "./file-icon-background-colors";
|
|
5
|
+
/**
|
|
6
|
+
* Returns an icon with name, fill color, and background color
|
|
7
|
+
* based on the file extension of the given filename.
|
|
8
|
+
*
|
|
9
|
+
* @param filename - the filename to get the icon for
|
|
10
|
+
*/
|
|
11
|
+
export function getFileIcon(filename) {
|
|
12
|
+
const extension = getFileExtension(filename);
|
|
13
|
+
return {
|
|
14
|
+
name: filetypeIconTable[extension] || DEFAULT_FILE_ICON,
|
|
15
|
+
color: filetypeFillColorTable[extension] || DEFAULT_ICON_FILL,
|
|
16
|
+
backgroundColor: filetypeBackgroundColorTable[extension] || DEFAULT_ICON_BACKGROUND,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// Copy of file icon names from lime-elements.
|
|
2
|
+
// Source: lime-elements/src/components/file/icons.ts
|
|
3
|
+
//
|
|
4
|
+
// Stencil doesn't support exporting utility functions from a component
|
|
5
|
+
// library, so we duplicate them here until a proper shared solution exists.
|
|
6
|
+
const DEFAULT_ICON = 'file';
|
|
7
|
+
const CALENDAR_ICON = 'tear_off_calendar';
|
|
8
|
+
const EMAIL_ICON = 'email';
|
|
9
|
+
const HTML_ICON = 'internet';
|
|
10
|
+
const TEXT_ICON = 'text_box';
|
|
11
|
+
const EXCEL_ICON = 'ms_excel_copyrighted';
|
|
12
|
+
const WORD_ICON = 'ms_word_copyrighted';
|
|
13
|
+
const POWERPOINT_ICON = 'ms_powerpoint_copyrighted';
|
|
14
|
+
const IMAGE_ICON = 'picture';
|
|
15
|
+
const PHOTO_ICON = 'camera';
|
|
16
|
+
const VECTOR_GRAPHIC_ICON = 'vector';
|
|
17
|
+
const PRESENTATION_ICON = 'presentation_filled';
|
|
18
|
+
const DOCUMENT_ICON = 'overview_pages_2';
|
|
19
|
+
const SPREADSHEET_ICON = 'data_sheet';
|
|
20
|
+
const AUDIO_ICON = 'audio_wave';
|
|
21
|
+
const VIDEO_ICON = 'video_file';
|
|
22
|
+
const COMPRESSED_ICON = 'condom_package';
|
|
23
|
+
const MESSAGE_ICON = 'ms_outlook_copyrighted';
|
|
24
|
+
const DATA_ICON = 'database';
|
|
25
|
+
export const DEFAULT_FILE_ICON = DEFAULT_ICON;
|
|
26
|
+
export const filetypeIconTable = {
|
|
27
|
+
msg: MESSAGE_ICON,
|
|
28
|
+
ics: CALENDAR_ICON,
|
|
29
|
+
ical: CALENDAR_ICON,
|
|
30
|
+
icalendar: CALENDAR_ICON,
|
|
31
|
+
ifb: CALENDAR_ICON,
|
|
32
|
+
email: EMAIL_ICON,
|
|
33
|
+
eml: EMAIL_ICON,
|
|
34
|
+
oft: EMAIL_ICON,
|
|
35
|
+
ost: EMAIL_ICON,
|
|
36
|
+
emlx: EMAIL_ICON,
|
|
37
|
+
html: HTML_ICON,
|
|
38
|
+
xml: HTML_ICON,
|
|
39
|
+
txt: TEXT_ICON,
|
|
40
|
+
rtf: TEXT_ICON,
|
|
41
|
+
dot: WORD_ICON,
|
|
42
|
+
doc: WORD_ICON,
|
|
43
|
+
docx: WORD_ICON,
|
|
44
|
+
dotx: WORD_ICON,
|
|
45
|
+
docm: WORD_ICON,
|
|
46
|
+
dotm: WORD_ICON,
|
|
47
|
+
odt: DOCUMENT_ICON,
|
|
48
|
+
pages: DOCUMENT_ICON,
|
|
49
|
+
pdf: 'PDF_2',
|
|
50
|
+
ppt: POWERPOINT_ICON,
|
|
51
|
+
pot: POWERPOINT_ICON,
|
|
52
|
+
pps: POWERPOINT_ICON,
|
|
53
|
+
pptx: POWERPOINT_ICON,
|
|
54
|
+
pptm: POWERPOINT_ICON,
|
|
55
|
+
potx: POWERPOINT_ICON,
|
|
56
|
+
potm: POWERPOINT_ICON,
|
|
57
|
+
ppam: POWERPOINT_ICON,
|
|
58
|
+
ppsx: POWERPOINT_ICON,
|
|
59
|
+
ppsm: POWERPOINT_ICON,
|
|
60
|
+
sldx: POWERPOINT_ICON,
|
|
61
|
+
sldm: POWERPOINT_ICON,
|
|
62
|
+
odp: PRESENTATION_ICON,
|
|
63
|
+
key: PRESENTATION_ICON,
|
|
64
|
+
xls: EXCEL_ICON,
|
|
65
|
+
xlsx: EXCEL_ICON,
|
|
66
|
+
csv: SPREADSHEET_ICON,
|
|
67
|
+
numbers: SPREADSHEET_ICON,
|
|
68
|
+
jpg: PHOTO_ICON,
|
|
69
|
+
jpeg: PHOTO_ICON,
|
|
70
|
+
heic: PHOTO_ICON,
|
|
71
|
+
bmp: IMAGE_ICON,
|
|
72
|
+
png: IMAGE_ICON,
|
|
73
|
+
gif: IMAGE_ICON,
|
|
74
|
+
psd: 'adobe_photoshop_copyrighted',
|
|
75
|
+
ai: 'adobe_illustrator_copyrighted',
|
|
76
|
+
svg: VECTOR_GRAPHIC_ICON,
|
|
77
|
+
svgz: VECTOR_GRAPHIC_ICON,
|
|
78
|
+
ep: VECTOR_GRAPHIC_ICON,
|
|
79
|
+
eps: VECTOR_GRAPHIC_ICON,
|
|
80
|
+
sketch: VECTOR_GRAPHIC_ICON,
|
|
81
|
+
mp3: AUDIO_ICON,
|
|
82
|
+
wav: AUDIO_ICON,
|
|
83
|
+
wma: AUDIO_ICON,
|
|
84
|
+
ogg: AUDIO_ICON,
|
|
85
|
+
avi: VIDEO_ICON,
|
|
86
|
+
flv: VIDEO_ICON,
|
|
87
|
+
h264: VIDEO_ICON,
|
|
88
|
+
mov: VIDEO_ICON,
|
|
89
|
+
mp4: VIDEO_ICON,
|
|
90
|
+
mwv: VIDEO_ICON,
|
|
91
|
+
zip: COMPRESSED_ICON,
|
|
92
|
+
'7z': COMPRESSED_ICON,
|
|
93
|
+
rar: COMPRESSED_ICON,
|
|
94
|
+
json: 'json',
|
|
95
|
+
yaml: DATA_ICON,
|
|
96
|
+
sql: DATA_ICON,
|
|
97
|
+
db: DATA_ICON,
|
|
98
|
+
dbf: DATA_ICON,
|
|
99
|
+
};
|
|
@@ -117,10 +117,10 @@ const DocumentItemComponent = /*@__PURE__*/ proxyCustomElement(class DocumentIte
|
|
|
117
117
|
render() {
|
|
118
118
|
const isUnavailable = this.isUnavailable();
|
|
119
119
|
const image = this.getImage();
|
|
120
|
-
return (h(Host, { key: '
|
|
120
|
+
return (h(Host, { key: 'b8c73e13073f66162b66a62f88b8b301a6a139d4', id: String(this.item.file.id), class: {
|
|
121
121
|
'has-image': !!image,
|
|
122
122
|
'has-error': !!this.item.hasError,
|
|
123
|
-
}, 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: '
|
|
123
|
+
}, 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()));
|
|
124
124
|
}
|
|
125
125
|
renderBooleanInput() {
|
|
126
126
|
const id = this.getControlId();
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Map of file extensions to their preview type
|
|
2
|
+
const previewExtensionMap = {
|
|
3
|
+
// Browser-native preview
|
|
4
|
+
avi: 'browser',
|
|
5
|
+
bmp: 'browser',
|
|
6
|
+
csv: 'browser', // CSV shows as plain text
|
|
7
|
+
gif: 'browser',
|
|
8
|
+
heic: 'browser',
|
|
9
|
+
html: 'browser',
|
|
10
|
+
jpeg: 'browser',
|
|
11
|
+
jpg: 'browser',
|
|
12
|
+
json: 'browser',
|
|
13
|
+
mp3: 'browser',
|
|
14
|
+
mp4: 'browser',
|
|
15
|
+
mov: 'browser',
|
|
16
|
+
ogg: 'browser',
|
|
17
|
+
pdf: 'browser',
|
|
18
|
+
png: 'browser',
|
|
19
|
+
svg: 'browser',
|
|
20
|
+
svgz: 'browser',
|
|
21
|
+
txt: 'browser',
|
|
22
|
+
wav: 'browser',
|
|
23
|
+
wmv: 'browser',
|
|
24
|
+
xml: 'browser',
|
|
25
|
+
// File viewer preview
|
|
26
|
+
eml: 'fileViewer',
|
|
27
|
+
// SharePoint PDF preview
|
|
28
|
+
doc: 'sharepoint',
|
|
29
|
+
docx: 'sharepoint',
|
|
30
|
+
dot: 'sharepoint',
|
|
31
|
+
dotx: 'sharepoint',
|
|
32
|
+
odp: 'sharepoint',
|
|
33
|
+
ods: 'sharepoint',
|
|
34
|
+
pot: 'sharepoint',
|
|
35
|
+
ppt: 'sharepoint',
|
|
36
|
+
pptx: 'sharepoint',
|
|
37
|
+
pps: 'sharepoint',
|
|
38
|
+
ppsx: 'sharepoint',
|
|
39
|
+
xls: 'sharepoint',
|
|
40
|
+
xlsb: 'sharepoint',
|
|
41
|
+
xlsm: 'sharepoint',
|
|
42
|
+
xlsx: 'sharepoint',
|
|
43
|
+
odt: 'sharepoint',
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Determines how a file can be previewed.
|
|
47
|
+
*
|
|
48
|
+
* @param extension - The file extension (case-insensitive).
|
|
49
|
+
* @returns The preview type.
|
|
50
|
+
*/
|
|
51
|
+
function getPreviewType(extension) {
|
|
52
|
+
return previewExtensionMap[extension.toLowerCase()] || 'unsupported';
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { getPreviewType as g };
|
|
@@ -10,7 +10,7 @@ const FeedItemThumbnailFileInfo = /*@__PURE__*/ proxyCustomElement(class FeedIte
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return h("span", { key: '
|
|
13
|
+
return h("span", { key: 'e651265e23288802ee6d89e3cfe5e0f7bd8073c3' }, this.description);
|
|
14
14
|
}
|
|
15
15
|
static get style() { return LimebbFeedItemThumbnailFileInfoStyle0; }
|
|
16
16
|
}, [1, "limebb-feed-item-thumbnail-file-info", {
|
|
@@ -210,7 +210,7 @@ const FeedTimelineItem = /*@__PURE__*/ proxyCustomElement(class FeedTimelineItem
|
|
|
210
210
|
render() {
|
|
211
211
|
var _a, _b;
|
|
212
212
|
const helperTextId = `helper-text-${this.item.id}`;
|
|
213
|
-
return (h(Host, { key: '
|
|
213
|
+
return (h(Host, { key: 'de138a29c33bcf4b77e6699b4ecc5dd4acde1c56', id: this.item.id, class: {
|
|
214
214
|
'has-unpromoted-actions': !!((_a = this.item.unpromotedActions) === null || _a === void 0 ? void 0 : _a.length),
|
|
215
215
|
'has-author-picture': !!((_b = this.item.author) === null || _b === void 0 ? void 0 : _b.picture),
|
|
216
216
|
'shows-less': !this.showMore,
|
|
@@ -33,7 +33,7 @@ const KanbanGroup = /*@__PURE__*/ proxyCustomElement(class KanbanGroup extends H
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '45122f5462476d2c0c9a44af4c5281ef510fdea1' }, this.renderHelp(), this.renderGroupHeading(), this.renderGroupSummary(), this.renderItems()));
|
|
37
37
|
}
|
|
38
38
|
renderGroupSummary() {
|
|
39
39
|
if (!this.summary || !this.totalCount) {
|
|
@@ -60,7 +60,7 @@ const KanbanItemComponent = /*@__PURE__*/ proxyCustomElement(class KanbanItemCom
|
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
62
|
var _a, _b;
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: 'b426be161e49623843ff6c47cddad048177ca441', id: this.item.id.toString(), class: {
|
|
64
64
|
'has-unpromoted-actions': !!((_a = this.item.unpromotedActions) === null || _a === void 0 ? void 0 : _a.length),
|
|
65
65
|
'is-selected': !!((_b = this.item) === null || _b === void 0 ? void 0 : _b.selected),
|
|
66
66
|
}, style: {
|
|
@@ -110,7 +110,7 @@ const LimeQueryFilterComparisonComponent = /*@__PURE__*/ proxyCustomElement(clas
|
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
render() {
|
|
113
|
-
return (h(Host, { key: '
|
|
113
|
+
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 }))));
|
|
114
114
|
}
|
|
115
115
|
renderHeader() {
|
|
116
116
|
if (!this.label) {
|
|
@@ -148,7 +148,7 @@ const LimeQueryFilterNotComponent = /*@__PURE__*/ proxyCustomElement(class LimeQ
|
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
|
-
return (h("div", { key: '
|
|
151
|
+
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 })));
|
|
152
152
|
}
|
|
153
153
|
static get style() { return LimebbLimeQueryFilterNotStyle0; }
|
|
154
154
|
}, [1, "limebb-lime-query-filter-not", {
|
|
@@ -253,9 +253,9 @@ const LimeQueryFilterGroupComponent = /*@__PURE__*/ proxyCustomElement(class Lim
|
|
|
253
253
|
(this.expression.op === re.AND ? 'and' : 'or')) || this.options[0];
|
|
254
254
|
}
|
|
255
255
|
render() {
|
|
256
|
-
return (h(Host, { key: '
|
|
256
|
+
return (h(Host, { key: 'a93a715b9bd65e6e9381083aef11951588471fc5', style: {
|
|
257
257
|
'--limebb-lime-query-filter-group-operator': `"${this.expression.op === re.AND ? 'AND' : 'OR'}"`,
|
|
258
|
-
} }, h("div", { key: '
|
|
258
|
+
} }, h("div", { key: 'efbf025924e34613504f38db66affa1650bfe70c', class: "expression" }, this.renderHeader(), h("ul", { key: '6e287058fb7969124e4f22b42b32b14d80c0511f' }, this.expression.exp.map(this.renderChildExpression), this.renderAddButton()), this.renderAddGroupButton())));
|
|
259
259
|
}
|
|
260
260
|
renderHeader() {
|
|
261
261
|
const subheading = this.getSubheading();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface LimebbDocumentChips extends Components.LimebbDocumentChips, HTMLElement {}
|
|
4
|
+
export const LimebbDocumentChips: {
|
|
5
|
+
prototype: LimebbDocumentChips;
|
|
6
|
+
new (): LimebbDocumentChips;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|