@limetech/lime-crm-building-blocks 1.124.0 → 1.125.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 +8 -0
- package/dist/cjs/color-palettes-BWuwMtwv.js +334 -0
- package/dist/cjs/index.cjs.js +5 -0
- package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
- package/dist/cjs/limebb-alert-dialog.cjs.entry.js +1 -1
- package/dist/cjs/limebb-browser.cjs.entry.js +2 -2
- package/dist/cjs/limebb-chat-icon-list_3.cjs.entry.js +4 -4
- package/dist/cjs/limebb-chat-list.cjs.entry.js +1 -1
- package/dist/cjs/limebb-color-palette-picker.cjs.entry.js +85 -0
- package/dist/cjs/limebb-color-palette-swatches.cjs.entry.js +21 -0
- package/dist/cjs/limebb-composer-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/limebb-currency-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-dashboard-widget.cjs.entry.js +1 -1
- package/dist/cjs/limebb-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-date-range.cjs.entry.js +1 -1
- package/dist/cjs/limebb-document-chips.cjs.entry.js +1 -1
- 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-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 +2 -2
- 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-rule-gate.cjs.entry.js +1 -1
- 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 +2 -0
- package/dist/collection/components/alert-dialog/alert-dialog.js +1 -1
- package/dist/collection/components/browser/browser.js +2 -2
- package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.js +1 -1
- package/dist/collection/components/chat-list/chat-item/chat-item.js +2 -2
- package/dist/collection/components/chat-list/chat-list.js +1 -1
- package/dist/collection/components/chat-list/typing-indicator/typing-indicator.js +1 -1
- package/dist/collection/components/color-palette-picker/color-palette-picker.css +5 -0
- package/dist/collection/components/color-palette-picker/color-palette-picker.js +295 -0
- package/dist/collection/components/color-palette-picker/color-palette-swatches/color-palette-swatches.css +28 -0
- package/dist/collection/components/color-palette-picker/color-palette-swatches/color-palette-swatches.js +61 -0
- package/dist/collection/components/composer-toolbar/composer-toolbar.js +2 -2
- package/dist/collection/components/currency-picker/currency-picker.js +1 -1
- package/dist/collection/components/dashboard-widget/dashboard-widget.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-range/date-range.js +1 -1
- package/dist/collection/components/document-chips/document-chips.js +1 -1
- 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/percentage-visualizer/percentage-visualizer.js +2 -2
- package/dist/collection/components/rule-gate/rule-gate.js +1 -1
- package/dist/collection/components/summary-popover/summary-popover.js +2 -2
- 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/index.js +1 -0
- package/dist/collection/util/color-palettes.js +329 -0
- package/dist/components/chat-icon-list.js +1 -1
- package/dist/components/chat-item.js +1 -1
- package/dist/components/color-palettes.js +1 -0
- package/dist/components/currency-picker.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/document-item.js +1 -1
- package/dist/components/feed-item-thumbnail-file-info.js +1 -1
- package/dist/components/feed-timeline-item.js +1 -1
- package/dist/components/index.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 +1 -1
- package/dist/components/limebb-alert-dialog.js +1 -1
- package/dist/components/limebb-browser.js +1 -1
- package/dist/components/limebb-chat-list.js +1 -1
- package/dist/components/limebb-color-palette-picker.d.ts +11 -0
- package/dist/components/limebb-color-palette-picker.js +1 -0
- package/dist/components/limebb-color-palette-swatches.d.ts +11 -0
- package/dist/components/limebb-color-palette-swatches.js +1 -0
- package/dist/components/limebb-composer-toolbar.js +1 -1
- package/dist/components/limebb-dashboard-widget.js +1 -1
- package/dist/components/limebb-date-range.js +1 -1
- package/dist/components/limebb-document-chips.js +1 -1
- 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-locale-picker.js +1 -1
- package/dist/components/limebb-mention-group-counter.js +1 -1
- package/dist/components/limebb-rule-gate.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 +1 -1
- package/dist/components/notification-item.js +1 -1
- package/dist/components/order-by-editor.js +1 -1
- package/dist/components/order-by-item.js +1 -1
- package/dist/components/percentage-visualizer.js +1 -1
- package/dist/components/response-format-item.js +1 -1
- package/dist/components/summary-popover.js +1 -1
- package/dist/components/typing-indicator.js +1 -1
- package/dist/esm/color-palettes-1N3bZuHj.js +331 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/lime-crm-building-blocks.js +1 -1
- package/dist/esm/limebb-alert-dialog.entry.js +1 -1
- package/dist/esm/limebb-browser.entry.js +2 -2
- package/dist/esm/limebb-chat-icon-list_3.entry.js +4 -4
- package/dist/esm/limebb-chat-list.entry.js +1 -1
- package/dist/esm/limebb-color-palette-picker.entry.js +83 -0
- package/dist/esm/limebb-color-palette-swatches.entry.js +19 -0
- package/dist/esm/limebb-composer-toolbar.entry.js +2 -2
- package/dist/esm/limebb-currency-picker.entry.js +1 -1
- package/dist/esm/limebb-dashboard-widget.entry.js +1 -1
- package/dist/esm/limebb-date-picker.entry.js +1 -1
- package/dist/esm/limebb-date-range.entry.js +1 -1
- package/dist/esm/limebb-document-chips.entry.js +1 -1
- 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-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 +2 -2
- package/dist/esm/limebb-notification-item.entry.js +1 -1
- package/dist/esm/limebb-percentage-visualizer.entry.js +2 -2
- package/dist/esm/limebb-rule-gate.entry.js +1 -1
- 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/index.esm.js +1 -1
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/{p-4f042496.entry.js → p-0be33708.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-5f97c392.entry.js → p-152b4f92.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-1N3bZuHj.js +1 -0
- package/dist/lime-crm-building-blocks/{p-9a42ae42.entry.js → p-23188fe0.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-4b275818.entry.js → p-24004bf3.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-4a93a4df.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-25c4e389.entry.js → p-4c255e2f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-6cb2d9dd.entry.js → p-53b19393.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-ad27bd5d.entry.js → p-593340d9.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-dd07a1ac.entry.js → p-5c420ada.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-bb5d40b1.entry.js → p-6941de0b.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-6a27184b.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-b0567904.entry.js → p-70957bab.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-f0a5076c.entry.js → p-8b11a02c.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-5fa5e7f4.entry.js → p-8e6446b5.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-52bddb06.entry.js → p-8f70f909.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e3e2852a.entry.js → p-900b74c0.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-f7114acb.entry.js → p-9041e7aa.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-27798ace.entry.js → p-a27e9bbb.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-85caaf36.entry.js → p-a3d4f2e1.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-8f8108c1.entry.js → p-a4584260.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-0f2d1ea7.entry.js → p-b35ebf4d.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-fcedbc77.entry.js → p-b4ae3ed3.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-09c63bce.entry.js → p-b5d84fff.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e4ff2906.entry.js → p-b74fe1ed.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-b07b3ae3.entry.js → p-befd1d3c.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-67326d92.entry.js → p-c5f0582c.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-c60673a4.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-2caf01c8.entry.js → p-c93314a6.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-9d56503d.entry.js → p-da248a53.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-e3a3c291.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-774cd93c.entry.js → p-e84ff80f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-6a05192a.entry.js → p-ebd152ab.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-287780c1.entry.js → p-f04ca19d.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-9214b92e.entry.js → p-f3ba4ed1.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e8425a2c.entry.js → p-f3c412b3.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-529dbe46.entry.js → p-fa7597f7.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-fc1aec12.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-0cbe7498.entry.js → p-fc6d9cea.entry.js} +1 -1
- package/dist/types/components/color-palette-picker/color-palette-picker.d.ts +89 -0
- package/dist/types/components/color-palette-picker/color-palette-swatches/color-palette-swatches.d.ts +23 -0
- package/dist/types/components.d.ts +288 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/util/color-palettes.d.ts +67 -0
- package/package.json +1 -1
- package/dist/lime-crm-building-blocks/p-51ab9d60.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-628ce56b.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-c6caa3f9.entry.js +0 -1
|
@@ -243,6 +243,88 @@ export namespace Components {
|
|
|
243
243
|
*/
|
|
244
244
|
"platform": LimeWebComponentPlatform;
|
|
245
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* Picks a color palette from the built-in color-palettes registry,
|
|
248
|
+
* and shows the palette's swatches alongside its title — both in
|
|
249
|
+
* the dropdown row and in the selected trigger area.
|
|
250
|
+
* ### When to use this picker
|
|
251
|
+
* Use it when a Lime CRM widget needs the admin to choose a set of
|
|
252
|
+
* colors purely for **visual differentiation** between items in a
|
|
253
|
+
* list. The picker's contract is "give every item a distinct, nicely
|
|
254
|
+
* harmonized color"; it does **not** assume any item-to-color
|
|
255
|
+
* mapping is meaningful. Concrete examples:
|
|
256
|
+
* - bars / slices in a chart widget
|
|
257
|
+
* - swimlanes in a kanban view
|
|
258
|
+
* - event categories in a calendar
|
|
259
|
+
* - tag chips on a list view
|
|
260
|
+
* ### When **not** to use it
|
|
261
|
+
* Don't use this picker when colors carry semantic meaning that
|
|
262
|
+
* end users must learn and rely on — e.g. _red = high priority_,
|
|
263
|
+
* _green = healthy_, _yellow = pending_. The palette's color order
|
|
264
|
+
* and contents may evolve over time (designers tweaking shades,
|
|
265
|
+
* appending new colors, retiring duplicates), so item-to-color
|
|
266
|
+
* mappings are intentionally **not** stable across releases. For
|
|
267
|
+
* status / priority / severity surfaces, encode meaning at the
|
|
268
|
+
* value level (icons, badges, labels) rather than color alone.
|
|
269
|
+
* @exampleComponent limebb-example-color-palette-picker
|
|
270
|
+
* @beta
|
|
271
|
+
*/
|
|
272
|
+
interface LimebbColorPalettePicker {
|
|
273
|
+
/**
|
|
274
|
+
* Whether or not the current property is disabled
|
|
275
|
+
* @inheritdoc
|
|
276
|
+
*/
|
|
277
|
+
"disabled": boolean;
|
|
278
|
+
/**
|
|
279
|
+
* The helper text for the current property
|
|
280
|
+
* @inheritdoc
|
|
281
|
+
*/
|
|
282
|
+
"helperText": string;
|
|
283
|
+
/**
|
|
284
|
+
* @inheritdoc
|
|
285
|
+
*/
|
|
286
|
+
"invalid": boolean;
|
|
287
|
+
/**
|
|
288
|
+
* The label of the current property
|
|
289
|
+
* @inheritdoc
|
|
290
|
+
*/
|
|
291
|
+
"label": string;
|
|
292
|
+
/**
|
|
293
|
+
* Whether or not the current property is readonly
|
|
294
|
+
* @inheritdoc
|
|
295
|
+
*/
|
|
296
|
+
"readonly": boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Whether or not the current property is required
|
|
299
|
+
* @inheritdoc
|
|
300
|
+
*/
|
|
301
|
+
"required": boolean;
|
|
302
|
+
/**
|
|
303
|
+
* The value of the current property
|
|
304
|
+
* @inheritdoc
|
|
305
|
+
*/
|
|
306
|
+
"value": string;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Renders a small grid of color swatches for a palette. Used as the
|
|
310
|
+
* inline preview inside [limebb-color-palette-picker](..) — both in
|
|
311
|
+
* the trigger (the currently chosen palette) and in each row of its
|
|
312
|
+
* dropdown list (so users can see the colors before picking). Pass
|
|
313
|
+
* any CSS color strings (`rgb(var(--…))`, hex, etc.).
|
|
314
|
+
* The swatches are purely decorative — they carry no semantic
|
|
315
|
+
* information beyond what the surrounding context (e.g. the picker
|
|
316
|
+
* option's text and secondary text) already provides. The component
|
|
317
|
+
* marks itself `aria-hidden` so assistive tech skips it cleanly.
|
|
318
|
+
* @exampleComponent limebb-example-color-palette-swatches
|
|
319
|
+
* @private
|
|
320
|
+
*/
|
|
321
|
+
interface LimebbColorPaletteSwatches {
|
|
322
|
+
/**
|
|
323
|
+
* Ordered list of CSS color values to render as swatches.
|
|
324
|
+
* @default []
|
|
325
|
+
*/
|
|
326
|
+
"colors": string[];
|
|
327
|
+
}
|
|
246
328
|
/**
|
|
247
329
|
* This component must be used in a limel-form
|
|
248
330
|
* where the Command ID OR component name exists in the same section as the config.
|
|
@@ -2463,6 +2545,10 @@ export interface LimebbBrowserCustomEvent<T> extends CustomEvent<T> {
|
|
|
2463
2545
|
detail: T;
|
|
2464
2546
|
target: HTMLLimebbBrowserElement;
|
|
2465
2547
|
}
|
|
2548
|
+
export interface LimebbColorPalettePickerCustomEvent<T> extends CustomEvent<T> {
|
|
2549
|
+
detail: T;
|
|
2550
|
+
target: HTMLLimebbColorPalettePickerElement;
|
|
2551
|
+
}
|
|
2466
2552
|
export interface LimebbComponentConfigCustomEvent<T> extends CustomEvent<T> {
|
|
2467
2553
|
detail: T;
|
|
2468
2554
|
target: HTMLLimebbComponentConfigElement;
|
|
@@ -2759,6 +2845,68 @@ declare global {
|
|
|
2759
2845
|
prototype: HTMLLimebbChatListElement;
|
|
2760
2846
|
new (): HTMLLimebbChatListElement;
|
|
2761
2847
|
};
|
|
2848
|
+
interface HTMLLimebbColorPalettePickerElementEventMap {
|
|
2849
|
+
"change": string;
|
|
2850
|
+
}
|
|
2851
|
+
/**
|
|
2852
|
+
* Picks a color palette from the built-in color-palettes registry,
|
|
2853
|
+
* and shows the palette's swatches alongside its title — both in
|
|
2854
|
+
* the dropdown row and in the selected trigger area.
|
|
2855
|
+
* ### When to use this picker
|
|
2856
|
+
* Use it when a Lime CRM widget needs the admin to choose a set of
|
|
2857
|
+
* colors purely for **visual differentiation** between items in a
|
|
2858
|
+
* list. The picker's contract is "give every item a distinct, nicely
|
|
2859
|
+
* harmonized color"; it does **not** assume any item-to-color
|
|
2860
|
+
* mapping is meaningful. Concrete examples:
|
|
2861
|
+
* - bars / slices in a chart widget
|
|
2862
|
+
* - swimlanes in a kanban view
|
|
2863
|
+
* - event categories in a calendar
|
|
2864
|
+
* - tag chips on a list view
|
|
2865
|
+
* ### When **not** to use it
|
|
2866
|
+
* Don't use this picker when colors carry semantic meaning that
|
|
2867
|
+
* end users must learn and rely on — e.g. _red = high priority_,
|
|
2868
|
+
* _green = healthy_, _yellow = pending_. The palette's color order
|
|
2869
|
+
* and contents may evolve over time (designers tweaking shades,
|
|
2870
|
+
* appending new colors, retiring duplicates), so item-to-color
|
|
2871
|
+
* mappings are intentionally **not** stable across releases. For
|
|
2872
|
+
* status / priority / severity surfaces, encode meaning at the
|
|
2873
|
+
* value level (icons, badges, labels) rather than color alone.
|
|
2874
|
+
* @exampleComponent limebb-example-color-palette-picker
|
|
2875
|
+
* @beta
|
|
2876
|
+
*/
|
|
2877
|
+
interface HTMLLimebbColorPalettePickerElement extends Components.LimebbColorPalettePicker, HTMLStencilElement {
|
|
2878
|
+
addEventListener<K extends keyof HTMLLimebbColorPalettePickerElementEventMap>(type: K, listener: (this: HTMLLimebbColorPalettePickerElement, ev: LimebbColorPalettePickerCustomEvent<HTMLLimebbColorPalettePickerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2879
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2880
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2881
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2882
|
+
removeEventListener<K extends keyof HTMLLimebbColorPalettePickerElementEventMap>(type: K, listener: (this: HTMLLimebbColorPalettePickerElement, ev: LimebbColorPalettePickerCustomEvent<HTMLLimebbColorPalettePickerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2883
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2884
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2885
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2886
|
+
}
|
|
2887
|
+
var HTMLLimebbColorPalettePickerElement: {
|
|
2888
|
+
prototype: HTMLLimebbColorPalettePickerElement;
|
|
2889
|
+
new (): HTMLLimebbColorPalettePickerElement;
|
|
2890
|
+
};
|
|
2891
|
+
/**
|
|
2892
|
+
* Renders a small grid of color swatches for a palette. Used as the
|
|
2893
|
+
* inline preview inside [limebb-color-palette-picker](..) — both in
|
|
2894
|
+
* the trigger (the currently chosen palette) and in each row of its
|
|
2895
|
+
* dropdown list (so users can see the colors before picking). Pass
|
|
2896
|
+
* any CSS color strings (`rgb(var(--…))`, hex, etc.).
|
|
2897
|
+
* The swatches are purely decorative — they carry no semantic
|
|
2898
|
+
* information beyond what the surrounding context (e.g. the picker
|
|
2899
|
+
* option's text and secondary text) already provides. The component
|
|
2900
|
+
* marks itself `aria-hidden` so assistive tech skips it cleanly.
|
|
2901
|
+
* @exampleComponent limebb-example-color-palette-swatches
|
|
2902
|
+
* @private
|
|
2903
|
+
*/
|
|
2904
|
+
interface HTMLLimebbColorPaletteSwatchesElement extends Components.LimebbColorPaletteSwatches, HTMLStencilElement {
|
|
2905
|
+
}
|
|
2906
|
+
var HTMLLimebbColorPaletteSwatchesElement: {
|
|
2907
|
+
prototype: HTMLLimebbColorPaletteSwatchesElement;
|
|
2908
|
+
new (): HTMLLimebbColorPaletteSwatchesElement;
|
|
2909
|
+
};
|
|
2762
2910
|
interface HTMLLimebbComponentConfigElementEventMap {
|
|
2763
2911
|
"change": Record<string, unknown>;
|
|
2764
2912
|
}
|
|
@@ -4239,6 +4387,8 @@ declare global {
|
|
|
4239
4387
|
"limebb-chat-icon-list": HTMLLimebbChatIconListElement;
|
|
4240
4388
|
"limebb-chat-item": HTMLLimebbChatItemElement;
|
|
4241
4389
|
"limebb-chat-list": HTMLLimebbChatListElement;
|
|
4390
|
+
"limebb-color-palette-picker": HTMLLimebbColorPalettePickerElement;
|
|
4391
|
+
"limebb-color-palette-swatches": HTMLLimebbColorPaletteSwatchesElement;
|
|
4242
4392
|
"limebb-component-config": HTMLLimebbComponentConfigElement;
|
|
4243
4393
|
"limebb-component-picker": HTMLLimebbComponentPickerElement;
|
|
4244
4394
|
"limebb-composer-toolbar": HTMLLimebbComposerToolbarElement;
|
|
@@ -4496,6 +4646,92 @@ declare namespace LocalJSX {
|
|
|
4496
4646
|
*/
|
|
4497
4647
|
"platform": LimeWebComponentPlatform;
|
|
4498
4648
|
}
|
|
4649
|
+
/**
|
|
4650
|
+
* Picks a color palette from the built-in color-palettes registry,
|
|
4651
|
+
* and shows the palette's swatches alongside its title — both in
|
|
4652
|
+
* the dropdown row and in the selected trigger area.
|
|
4653
|
+
* ### When to use this picker
|
|
4654
|
+
* Use it when a Lime CRM widget needs the admin to choose a set of
|
|
4655
|
+
* colors purely for **visual differentiation** between items in a
|
|
4656
|
+
* list. The picker's contract is "give every item a distinct, nicely
|
|
4657
|
+
* harmonized color"; it does **not** assume any item-to-color
|
|
4658
|
+
* mapping is meaningful. Concrete examples:
|
|
4659
|
+
* - bars / slices in a chart widget
|
|
4660
|
+
* - swimlanes in a kanban view
|
|
4661
|
+
* - event categories in a calendar
|
|
4662
|
+
* - tag chips on a list view
|
|
4663
|
+
* ### When **not** to use it
|
|
4664
|
+
* Don't use this picker when colors carry semantic meaning that
|
|
4665
|
+
* end users must learn and rely on — e.g. _red = high priority_,
|
|
4666
|
+
* _green = healthy_, _yellow = pending_. The palette's color order
|
|
4667
|
+
* and contents may evolve over time (designers tweaking shades,
|
|
4668
|
+
* appending new colors, retiring duplicates), so item-to-color
|
|
4669
|
+
* mappings are intentionally **not** stable across releases. For
|
|
4670
|
+
* status / priority / severity surfaces, encode meaning at the
|
|
4671
|
+
* value level (icons, badges, labels) rather than color alone.
|
|
4672
|
+
* @exampleComponent limebb-example-color-palette-picker
|
|
4673
|
+
* @beta
|
|
4674
|
+
*/
|
|
4675
|
+
interface LimebbColorPalettePicker {
|
|
4676
|
+
/**
|
|
4677
|
+
* Whether or not the current property is disabled
|
|
4678
|
+
* @inheritdoc
|
|
4679
|
+
*/
|
|
4680
|
+
"disabled"?: boolean;
|
|
4681
|
+
/**
|
|
4682
|
+
* The helper text for the current property
|
|
4683
|
+
* @inheritdoc
|
|
4684
|
+
*/
|
|
4685
|
+
"helperText"?: string;
|
|
4686
|
+
/**
|
|
4687
|
+
* @inheritdoc
|
|
4688
|
+
*/
|
|
4689
|
+
"invalid"?: boolean;
|
|
4690
|
+
/**
|
|
4691
|
+
* The label of the current property
|
|
4692
|
+
* @inheritdoc
|
|
4693
|
+
*/
|
|
4694
|
+
"label"?: string;
|
|
4695
|
+
/**
|
|
4696
|
+
* Emitted when the user picks a different palette. The detail is the chosen palette's `id`.
|
|
4697
|
+
*/
|
|
4698
|
+
"onChange"?: (event: LimebbColorPalettePickerCustomEvent<string>) => void;
|
|
4699
|
+
/**
|
|
4700
|
+
* Whether or not the current property is readonly
|
|
4701
|
+
* @inheritdoc
|
|
4702
|
+
*/
|
|
4703
|
+
"readonly"?: boolean;
|
|
4704
|
+
/**
|
|
4705
|
+
* Whether or not the current property is required
|
|
4706
|
+
* @inheritdoc
|
|
4707
|
+
*/
|
|
4708
|
+
"required"?: boolean;
|
|
4709
|
+
/**
|
|
4710
|
+
* The value of the current property
|
|
4711
|
+
* @inheritdoc
|
|
4712
|
+
*/
|
|
4713
|
+
"value"?: string;
|
|
4714
|
+
}
|
|
4715
|
+
/**
|
|
4716
|
+
* Renders a small grid of color swatches for a palette. Used as the
|
|
4717
|
+
* inline preview inside [limebb-color-palette-picker](..) — both in
|
|
4718
|
+
* the trigger (the currently chosen palette) and in each row of its
|
|
4719
|
+
* dropdown list (so users can see the colors before picking). Pass
|
|
4720
|
+
* any CSS color strings (`rgb(var(--…))`, hex, etc.).
|
|
4721
|
+
* The swatches are purely decorative — they carry no semantic
|
|
4722
|
+
* information beyond what the surrounding context (e.g. the picker
|
|
4723
|
+
* option's text and secondary text) already provides. The component
|
|
4724
|
+
* marks itself `aria-hidden` so assistive tech skips it cleanly.
|
|
4725
|
+
* @exampleComponent limebb-example-color-palette-swatches
|
|
4726
|
+
* @private
|
|
4727
|
+
*/
|
|
4728
|
+
interface LimebbColorPaletteSwatches {
|
|
4729
|
+
/**
|
|
4730
|
+
* Ordered list of CSS color values to render as swatches.
|
|
4731
|
+
* @default []
|
|
4732
|
+
*/
|
|
4733
|
+
"colors"?: string[];
|
|
4734
|
+
}
|
|
4499
4735
|
/**
|
|
4500
4736
|
* This component must be used in a limel-form
|
|
4501
4737
|
* where the Command ID OR component name exists in the same section as the config.
|
|
@@ -6919,6 +7155,15 @@ declare namespace LocalJSX {
|
|
|
6919
7155
|
"lastVisitedTimestamp": string | Date | null;
|
|
6920
7156
|
"order": 'newest-on-top' | 'oldest-on-top';
|
|
6921
7157
|
}
|
|
7158
|
+
interface LimebbColorPalettePickerAttributes {
|
|
7159
|
+
"value": string;
|
|
7160
|
+
"required": boolean;
|
|
7161
|
+
"readonly": boolean;
|
|
7162
|
+
"invalid": boolean;
|
|
7163
|
+
"disabled": boolean;
|
|
7164
|
+
"label": string;
|
|
7165
|
+
"helperText": string;
|
|
7166
|
+
}
|
|
6922
7167
|
interface LimebbComponentConfigAttributes {
|
|
6923
7168
|
"required": boolean;
|
|
6924
7169
|
"readonly": boolean;
|
|
@@ -7215,6 +7460,8 @@ declare namespace LocalJSX {
|
|
|
7215
7460
|
"limebb-chat-icon-list": LimebbChatIconList;
|
|
7216
7461
|
"limebb-chat-item": Omit<LimebbChatItem, keyof LimebbChatItemAttributes> & { [K in keyof LimebbChatItem & keyof LimebbChatItemAttributes]?: LimebbChatItem[K] } & { [K in keyof LimebbChatItem & keyof LimebbChatItemAttributes as `attr:${K}`]?: LimebbChatItemAttributes[K] } & { [K in keyof LimebbChatItem & keyof LimebbChatItemAttributes as `prop:${K}`]?: LimebbChatItem[K] };
|
|
7217
7462
|
"limebb-chat-list": Omit<LimebbChatList, keyof LimebbChatListAttributes> & { [K in keyof LimebbChatList & keyof LimebbChatListAttributes]?: LimebbChatList[K] } & { [K in keyof LimebbChatList & keyof LimebbChatListAttributes as `attr:${K}`]?: LimebbChatListAttributes[K] } & { [K in keyof LimebbChatList & keyof LimebbChatListAttributes as `prop:${K}`]?: LimebbChatList[K] };
|
|
7463
|
+
"limebb-color-palette-picker": Omit<LimebbColorPalettePicker, keyof LimebbColorPalettePickerAttributes> & { [K in keyof LimebbColorPalettePicker & keyof LimebbColorPalettePickerAttributes]?: LimebbColorPalettePicker[K] } & { [K in keyof LimebbColorPalettePicker & keyof LimebbColorPalettePickerAttributes as `attr:${K}`]?: LimebbColorPalettePickerAttributes[K] } & { [K in keyof LimebbColorPalettePicker & keyof LimebbColorPalettePickerAttributes as `prop:${K}`]?: LimebbColorPalettePicker[K] };
|
|
7464
|
+
"limebb-color-palette-swatches": LimebbColorPaletteSwatches;
|
|
7218
7465
|
"limebb-component-config": Omit<LimebbComponentConfig, keyof LimebbComponentConfigAttributes> & { [K in keyof LimebbComponentConfig & keyof LimebbComponentConfigAttributes]?: LimebbComponentConfig[K] } & { [K in keyof LimebbComponentConfig & keyof LimebbComponentConfigAttributes as `attr:${K}`]?: LimebbComponentConfigAttributes[K] } & { [K in keyof LimebbComponentConfig & keyof LimebbComponentConfigAttributes as `prop:${K}`]?: LimebbComponentConfig[K] };
|
|
7219
7466
|
"limebb-component-picker": Omit<LimebbComponentPicker, keyof LimebbComponentPickerAttributes> & { [K in keyof LimebbComponentPicker & keyof LimebbComponentPickerAttributes]?: LimebbComponentPicker[K] } & { [K in keyof LimebbComponentPicker & keyof LimebbComponentPickerAttributes as `attr:${K}`]?: LimebbComponentPickerAttributes[K] } & { [K in keyof LimebbComponentPicker & keyof LimebbComponentPickerAttributes as `prop:${K}`]?: LimebbComponentPicker[K] };
|
|
7220
7467
|
"limebb-composer-toolbar": Omit<LimebbComposerToolbar, keyof LimebbComposerToolbarAttributes> & { [K in keyof LimebbComposerToolbar & keyof LimebbComposerToolbarAttributes]?: LimebbComposerToolbar[K] } & { [K in keyof LimebbComposerToolbar & keyof LimebbComposerToolbarAttributes as `attr:${K}`]?: LimebbComposerToolbarAttributes[K] } & { [K in keyof LimebbComposerToolbar & keyof LimebbComposerToolbarAttributes as `prop:${K}`]?: LimebbComposerToolbar[K] };
|
|
@@ -7362,6 +7609,47 @@ declare module "@stencil/core" {
|
|
|
7362
7609
|
* @beta
|
|
7363
7610
|
*/
|
|
7364
7611
|
"limebb-chat-list": LocalJSX.IntrinsicElements["limebb-chat-list"] & JSXBase.HTMLAttributes<HTMLLimebbChatListElement>;
|
|
7612
|
+
/**
|
|
7613
|
+
* Picks a color palette from the built-in color-palettes registry,
|
|
7614
|
+
* and shows the palette's swatches alongside its title — both in
|
|
7615
|
+
* the dropdown row and in the selected trigger area.
|
|
7616
|
+
* ### When to use this picker
|
|
7617
|
+
* Use it when a Lime CRM widget needs the admin to choose a set of
|
|
7618
|
+
* colors purely for **visual differentiation** between items in a
|
|
7619
|
+
* list. The picker's contract is "give every item a distinct, nicely
|
|
7620
|
+
* harmonized color"; it does **not** assume any item-to-color
|
|
7621
|
+
* mapping is meaningful. Concrete examples:
|
|
7622
|
+
* - bars / slices in a chart widget
|
|
7623
|
+
* - swimlanes in a kanban view
|
|
7624
|
+
* - event categories in a calendar
|
|
7625
|
+
* - tag chips on a list view
|
|
7626
|
+
* ### When **not** to use it
|
|
7627
|
+
* Don't use this picker when colors carry semantic meaning that
|
|
7628
|
+
* end users must learn and rely on — e.g. _red = high priority_,
|
|
7629
|
+
* _green = healthy_, _yellow = pending_. The palette's color order
|
|
7630
|
+
* and contents may evolve over time (designers tweaking shades,
|
|
7631
|
+
* appending new colors, retiring duplicates), so item-to-color
|
|
7632
|
+
* mappings are intentionally **not** stable across releases. For
|
|
7633
|
+
* status / priority / severity surfaces, encode meaning at the
|
|
7634
|
+
* value level (icons, badges, labels) rather than color alone.
|
|
7635
|
+
* @exampleComponent limebb-example-color-palette-picker
|
|
7636
|
+
* @beta
|
|
7637
|
+
*/
|
|
7638
|
+
"limebb-color-palette-picker": LocalJSX.IntrinsicElements["limebb-color-palette-picker"] & JSXBase.HTMLAttributes<HTMLLimebbColorPalettePickerElement>;
|
|
7639
|
+
/**
|
|
7640
|
+
* Renders a small grid of color swatches for a palette. Used as the
|
|
7641
|
+
* inline preview inside [limebb-color-palette-picker](..) — both in
|
|
7642
|
+
* the trigger (the currently chosen palette) and in each row of its
|
|
7643
|
+
* dropdown list (so users can see the colors before picking). Pass
|
|
7644
|
+
* any CSS color strings (`rgb(var(--…))`, hex, etc.).
|
|
7645
|
+
* The swatches are purely decorative — they carry no semantic
|
|
7646
|
+
* information beyond what the surrounding context (e.g. the picker
|
|
7647
|
+
* option's text and secondary text) already provides. The component
|
|
7648
|
+
* marks itself `aria-hidden` so assistive tech skips it cleanly.
|
|
7649
|
+
* @exampleComponent limebb-example-color-palette-swatches
|
|
7650
|
+
* @private
|
|
7651
|
+
*/
|
|
7652
|
+
"limebb-color-palette-swatches": LocalJSX.IntrinsicElements["limebb-color-palette-swatches"] & JSXBase.HTMLAttributes<HTMLLimebbColorPaletteSwatchesElement>;
|
|
7365
7653
|
/**
|
|
7366
7654
|
* This component must be used in a limel-form
|
|
7367
7655
|
* where the Command ID OR component name exists in the same section as the config.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A small registry of curated color palettes that can be reused
|
|
3
|
+
* wherever Lime CRM needs to assign distinct colors to a list of
|
|
4
|
+
* items — tag swatches, kanban swimlanes, multi-series visuals,
|
|
5
|
+
* legend entries, chart buckets, and so on. Palettes are stored as
|
|
6
|
+
* plain CSS color strings so consumers can hand them straight to a
|
|
7
|
+
* component prop or to inline `style` without further conversion.
|
|
8
|
+
*
|
|
9
|
+
* The default palettes lean on the Lime Extended color palette via
|
|
10
|
+
* `rgb(var(--color-…))` so they pick up dark / light mode
|
|
11
|
+
* automatically. The color-blind-friendly palette uses Wong (2011)
|
|
12
|
+
* hex values verbatim — those are tuned for distinguishability and
|
|
13
|
+
* substituting Lime's nearest neighbours would defeat the purpose.
|
|
14
|
+
*
|
|
15
|
+
* :::important
|
|
16
|
+
* **Append-only:** consumers assign colors by index (often modulo
|
|
17
|
+
* the palette length), so to keep already-saved configurations
|
|
18
|
+
* stable across releases, never reorder or replace existing colors
|
|
19
|
+
* in a palette — only append new ones at the end.
|
|
20
|
+
* :::
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* A curated set of CSS color values that can be applied to a list of
|
|
24
|
+
* items needing distinct, visually harmonious colors.
|
|
25
|
+
*
|
|
26
|
+
* @beta
|
|
27
|
+
*/
|
|
28
|
+
export interface ColorPalette {
|
|
29
|
+
/**
|
|
30
|
+
* Stable id used to reference a palette from saved
|
|
31
|
+
* configuration (e.g. widget admin settings). Must not change
|
|
32
|
+
* once a palette has been shipped.
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Human-readable name to display in pickers and legends.
|
|
37
|
+
*/
|
|
38
|
+
title: string;
|
|
39
|
+
/**
|
|
40
|
+
* One-sentence explanation of what the palette is good for.
|
|
41
|
+
* Surfaced in pickers as helper text.
|
|
42
|
+
*/
|
|
43
|
+
description: string;
|
|
44
|
+
/**
|
|
45
|
+
* Ordered list of CSS color values. Consumers iterate into this
|
|
46
|
+
* list (typically modulo its length) to assign one color per
|
|
47
|
+
* item.
|
|
48
|
+
*/
|
|
49
|
+
colors: string[];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Built-in palettes. Order matters — pickers should render them in
|
|
53
|
+
* this order, with the first entry being the most generally useful
|
|
54
|
+
* default.
|
|
55
|
+
*
|
|
56
|
+
* @beta
|
|
57
|
+
*/
|
|
58
|
+
export declare const COLOR_PALETTES: ColorPalette[];
|
|
59
|
+
/**
|
|
60
|
+
* Look up a palette by id. Returns `undefined` when the id is
|
|
61
|
+
* unknown; callers typically fall back to `COLOR_PALETTES[0]`.
|
|
62
|
+
* @param id - the palette's stable id (see {@link ColorPalette.id}).
|
|
63
|
+
*
|
|
64
|
+
* @beta
|
|
65
|
+
*/
|
|
66
|
+
export declare function getColorPalette(id: string): ColorPalette | undefined;
|
|
67
|
+
//# sourceMappingURL=color-palettes.d.ts.map
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-BIwHMk6j.js";import{n as s}from"./p-BeLcuSg8.js";const h=class{constructor(i){t(this,i),this.change=e(this,"change"),this.disabled=!1,this.readonly=!1,this.invalid=!1,this.required=!1,this.type="datetime",this.shouldEmitValueAsString=!0,this.handleChange=t=>{if(!t.detail)return;t.stopPropagation();const e=(i=t.detail,"datetime"===(s=this.type)||"time"===s?i:new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())));var i,s;this.change.emit(this.shouldEmitValueAsString?e.toISOString():e)},this.formatter=t=>this.dateTimeFormatter.format(t,a[this.type]||this.type)}render(){return this.language||(this.language=this.getAppLanguage()),this.value&&(this.shouldEmitValueAsString="string"==typeof this.value),i("limel-date-picker",{key:"3db884d7d5ceec1790e7de8a785a0e95aa07acd9",disabled:this.disabled,readonly:this.readonly,invalid:this.invalid,label:this.label,placeholder:this.placeholder,helperText:this.helperText,required:this.required,value:this.parseDateValue(),type:this.type,language:this.language,formatter:this.formatter,onChange:this.handleChange})}parseDateValue(){const t=this.value;if(t)return this.dateTimeFormatter.parse(t,a[this.type]||this.type)}get dateTimeFormatter(){return this.platform.get(s.DateTimeFormatter)}getAppLanguage(){const t=this.platform.get(s.Translate),e=this.platform.get(s.Application);let i;var h;return i="function"==typeof(null==(h=t)?void 0:h.getLanguage)?t.getLanguage():e.getLanguage(),n(i)?i:"en"}},a={datetime:"time",time:"timeofday"},r=new Set(["da","de","en","fi","fr","nb","no","nl","sv"]),n=t=>r.has(t);export{h as limebb_date_picker}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-BIwHMk6j.js";import{n as l}from"./p-BeLcuSg8.js";const n=[{trigger:"rich-text",icon:"font_style_formatting",translationKey:"webclient.composer-toolbar.rich-text"},{trigger:"mention",icon:"email_sign_92447",translationKey:"webclient.composer-toolbar.mention",helperLabel:"@"},{trigger:"text-snippet",icon:"rich_text_converter",translationKey:"webclient.composer-toolbar.text-snippet",helperLabel:"!"},{trigger:"internal-link",icon:"hashtag_large",translationKey:"webclient.composer-toolbar.internal-link",helperLabel:"#"}],o=class{constructor(i){t(this,i),this.triggerInsert=e(this,"triggerInsert"),this.filesSelected=e(this,"filesSelected"),this.mentions=!1,this.textSnippets=!1,this.internalLinks=!1,this.richText=!1,this.handleTriggerSelected=t=>{t.stopPropagation(),this.triggerInsert.emit(t.detail.value)},this.handleFilesSelected=t=>{t.stopPropagation(),this.filesSelected.emit(t.detail)}}render(){return[i("div",{key:"65a3b1eb3ba4ebe0e87a732b9b40ab757f653470",class:"actions"},i("slot",{key:"6aba4388efdaf0122fe16b1d2b5fa4413b76cac1",name:"leading"}),this.renderFileInput(),this.renderTriggerActions(),i("slot",{key:"cb829dfa676b3bf46fad352317e203211e3aae6a",name:"trailing"})),i("slot",{key:"6649aa3c3887176d28c0798405fe27a1d5ba807b",name:"primary-action"})]}get translator(){var t;return null===(t=this.platform)||void 0===t?void 0:t.get(l.Translate)}get triggerActions(){const t={mention:this.mentions,"text-snippet":this.textSnippets,"internal-link":this.internalLinks,"rich-text":this.richText};return n.filter((e=>t[e.trigger])).map((t=>{var e,i;return{text:null!==(i=null===(e=this.translator)||void 0===e?void 0:e.get(t.translationKey))&&void 0!==i?i:t.trigger,commandText:t.helperLabel,icon:t.icon,iconOnly:!0,value:t.trigger}}))}renderTriggerActions(){const t=this.triggerActions;if(0!==t.length)return i("limel-action-bar",{actions:t,onItemSelected:this.handleTriggerSelected})}renderFileInput(){var t,e,l,n,o,r;if(this.fileInput)return i("limel-file-input",{accept:null!==(t=this.fileInput.accept)&&void 0!==t?t:"*",multiple:null!==(e=this.fileInput.multiple)&&void 0!==e&&e,disabled:null!==(l=this.fileInput.disabled)&&void 0!==l&&l,onFilesSelected:this.handleFilesSelected},i("limel-icon-button",{icon:"attach",disabled:null!==(n=this.fileInput.disabled)&&void 0!==n&&n,label:null===(o=this.translator)||void 0===o?void 0:o.get("webclient.attach-files"),helperLabel:null===(r=this.translator)||void 0===r?void 0:r.get("webclient.attach-files-helper")}))}};o.style="*{box-sizing:border-box;min-width:0}:host(limebb-composer-toolbar){box-sizing:border-box;display:flex;align-items:center;width:100%;max-width:100%;gap:0.5rem}.actions{display:flex;align-items:center;flex-wrap:nowrap;flex-grow:1}limel-icon-button,::slotted(limel-icon-button){display:inline-block;scale:0.86}limel-file-input{flex-shrink:0}";export{o as limebb_composer_toolbar}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,H as s,g as o}from"./p-BIwHMk6j.js";import{n as i}from"./p-BeLcuSg8.js";const n=class{constructor(t){e(this,t),this.shouldRender=!1}componentWillLoad(){this.compileAndEvaluate()}onRuleChange(){this.compileAndEvaluate()}onScopeChange(){this.compileAndEvaluate()}render(){return t(s,{key:"f421ff8fa1e6955c618e74e6bfdfd4c34e2352fc",hidden:!this.shouldRender},t("slot",{key:"f1372eda9eebdba7157e7f80d2eebbdb107e9cee"}))}get ruleRegistry(){return this.platform.get(i.RuleRegistry)}compileAndEvaluate(){var e;const t=this.ruleRegistry.compile(this.rule),s=null!==(e=this.scope)&&void 0!==e?e:this.ruleRegistry.scope({host:this.host});this.shouldRender=t(s)}get host(){return o(this)}static get watchers(){return{rule:[{onRuleChange:0}],scope:[{onScopeChange:0}]}}};n.style=":host{display:contents}:host([hidden]){display:none}";export{n as limebb_rule_gate}
|