@limetech/lime-crm-building-blocks 1.115.1 → 1.116.1
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 +17 -0
- package/dist/cjs/{_Map-60aae0ed.js → _Map-BlpAtLvq.js} +12 -24
- package/dist/cjs/{_MapCache-8b125fbb.js → _MapCache-De1Fwe0H.js} +5 -7
- package/dist/cjs/{_Uint8Array-95263550.js → _Uint8Array-C_lvn5HO.js} +6 -14
- package/dist/cjs/{_baseIsEqual-f2d60d3e.js → _baseIsEqual-BtwicGmu.js} +4 -4
- package/dist/cjs/{_defineProperty-40a6ad5d.js → _defineProperty-eImBwVFM.js} +2 -4
- package/dist/cjs/{_getTag-8809c5c6.js → _getTag-CdUodI28.js} +18 -39
- package/dist/cjs/{get-932b213e.js → get-BRGtX379.js} +6 -14
- package/dist/cjs/{index-519b904a.js → index-C_OnxXhP.js} +541 -322
- package/dist/cjs/index.esm-DhBVH875.js +838 -0
- package/dist/cjs/{isSymbol-5b36aeee.js → isSymbol-D8S28StA.js} +1 -1
- package/dist/cjs/lime-crm-building-blocks.cjs.js +7 -7
- package/dist/cjs/{lime-query-validation-c118b96d.js → lime-query-validation-CWlZPm8m.js} +8 -8
- package/dist/cjs/limebb-alert-dialog.cjs.entry.js +5 -8
- package/dist/cjs/limebb-browser.cjs.entry.js +11 -14
- package/dist/cjs/limebb-chat-icon-list_3.cjs.entry.js +212 -0
- package/dist/cjs/limebb-chat-list.cjs.entry.js +46 -45
- package/dist/cjs/limebb-component-config.cjs.entry.js +17 -16
- package/dist/cjs/limebb-component-picker.cjs.entry.js +9 -12
- package/dist/cjs/limebb-composer-toolbar.cjs.entry.js +9 -12
- package/dist/cjs/limebb-currency-picker.cjs.entry.js +1907 -1790
- package/dist/cjs/limebb-dashboard-widget.cjs.entry.js +4 -7
- package/dist/cjs/limebb-data-cells.cjs.entry.js +5 -8
- package/dist/cjs/limebb-date-picker.cjs.entry.js +7 -9
- package/dist/cjs/limebb-date-range.cjs.entry.js +6 -9
- package/dist/cjs/limebb-document-chips.cjs.entry.js +10 -11
- package/dist/cjs/limebb-document-item.cjs.entry.js +6 -9
- package/dist/cjs/limebb-document-picker.cjs.entry.js +6 -9
- package/dist/cjs/limebb-empty-state.cjs.entry.js +3 -6
- package/dist/cjs/limebb-feed-item-thumbnail-file-info.cjs.entry.js +4 -7
- package/dist/cjs/limebb-feed-timeline-item.cjs.entry.js +8 -11
- package/dist/cjs/limebb-feed.cjs.entry.js +430 -168
- package/dist/cjs/limebb-icon-picker.cjs.entry.js +4 -6
- package/dist/cjs/limebb-info-tile-currency-format.cjs.entry.js +2 -4
- package/dist/cjs/limebb-info-tile-date-format.cjs.entry.js +4 -7
- package/dist/cjs/limebb-info-tile-decimal-format.cjs.entry.js +2 -4
- package/dist/cjs/limebb-info-tile-format.cjs.entry.js +5 -8
- package/dist/cjs/limebb-info-tile-relative-date-format.cjs.entry.js +2 -4
- package/dist/cjs/limebb-info-tile-unit-format.cjs.entry.js +2 -4
- package/dist/cjs/limebb-info-tile.cjs.entry.js +27 -24
- package/dist/cjs/limebb-kanban-group.cjs.entry.js +8 -11
- package/dist/cjs/limebb-kanban-item.cjs.entry.js +8 -11
- package/dist/cjs/limebb-kanban.cjs.entry.js +5 -8
- package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +9 -12
- package/dist/cjs/limebb-lime-query-filter-builder_3.cjs.entry.js +27 -29
- package/dist/cjs/limebb-lime-query-filter-comparison_2.cjs.entry.js +26 -30
- package/dist/cjs/limebb-lime-query-filter-group_3.cjs.entry.js +25 -30
- package/dist/cjs/limebb-lime-query-order-by-item.cjs.entry.js +6 -9
- package/dist/cjs/limebb-lime-query-response-format-builder.cjs.entry.js +9 -12
- package/dist/cjs/limebb-lime-query-response-format-editor_2.cjs.entry.js +8 -12
- package/dist/cjs/limebb-limeobject-file-viewer.cjs.entry.js +9 -12
- package/dist/cjs/limebb-live-docs-info.cjs.entry.js +5 -8
- package/dist/cjs/limebb-loader.cjs.entry.js +12 -10
- package/dist/cjs/limebb-locale-picker.cjs.entry.js +29 -49
- package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +5 -8
- package/dist/cjs/limebb-mention.cjs.entry.js +6 -9
- package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +10 -14
- package/dist/cjs/limebb-notification-item.cjs.entry.js +9 -12
- package/dist/cjs/limebb-notification-list.cjs.entry.js +10 -11
- package/dist/cjs/limebb-object-chip.cjs.entry.js +16 -15
- package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +9 -10
- package/dist/cjs/limebb-property-selector.cjs.entry.js +9 -12
- package/dist/cjs/limebb-text-editor-picker.cjs.entry.js +9 -10
- package/dist/cjs/limebb-text-editor.cjs.entry.js +53 -307
- package/dist/cjs/limebb-trend-indicator.cjs.entry.js +8 -9
- package/dist/cjs/{limetype-3c1c53b6.js → limetype-6tkuY6nm.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/alert-dialog/alert-dialog.js +11 -10
- package/dist/collection/components/browser/browser.js +14 -9
- package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.css +199 -0
- package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.js +75 -0
- package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.types.js +1 -0
- package/dist/collection/components/chat-list/chat-item/chat-item.js +11 -8
- package/dist/collection/components/chat-list/chat-list.js +30 -17
- package/dist/collection/components/chat-list/chat-list.types.js +1 -0
- package/dist/collection/components/chat-list/process-chat-items.js +26 -33
- package/dist/collection/components/chat-list/typing-indicator/typing-indicator.js +1 -1
- package/dist/collection/components/component-command-picker/component-config/component-config.js +23 -19
- package/dist/collection/components/component-command-picker/component-picker/component-picker.js +21 -18
- package/dist/collection/components/composer-toolbar/composer-toolbar.js +14 -10
- package/dist/collection/components/currency-picker/currency-picker.js +15 -13
- package/dist/collection/components/dashboard-widget/dashboard-widget.js +11 -10
- package/dist/collection/components/data-cells/data-cells.js +8 -5
- package/dist/collection/components/date-picker/date-picker.js +20 -17
- package/dist/collection/components/date-range/date-range.js +19 -15
- package/dist/collection/components/document-chips/document-chips.js +5 -4
- package/dist/collection/components/document-picker/document-item/document-item.js +13 -8
- package/dist/collection/components/document-picker/document-picker.js +18 -13
- package/dist/collection/components/empty-state/empty-state.js +6 -5
- package/dist/collection/components/feed/feed-item/feed-timeline-item.js +12 -9
- package/dist/collection/components/feed/feed-item-thumbnail-file-info/feed-item-thumbnail-file-info.js +3 -3
- package/dist/collection/components/feed/feed.js +21 -18
- package/dist/collection/components/icon-picker/icon-picker.js +15 -15
- package/dist/collection/components/info-tile/format/config/info-tile-currency-format.js +8 -4
- package/dist/collection/components/info-tile/format/config/info-tile-date-format.js +4 -2
- package/dist/collection/components/info-tile/format/config/info-tile-decimal-format.js +4 -2
- package/dist/collection/components/info-tile/format/config/info-tile-format.js +11 -7
- package/dist/collection/components/info-tile/format/config/info-tile-relative-date-format.js +4 -2
- package/dist/collection/components/info-tile/format/config/info-tile-unit-format.js +4 -2
- package/dist/collection/components/info-tile/info-tile.js +29 -23
- package/dist/collection/components/kanban/kanban-group/kanban-group.js +19 -16
- package/dist/collection/components/kanban/kanban-item/kanban-item.js +9 -5
- package/dist/collection/components/kanban/kanban.js +10 -5
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-builder.js +12 -8
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.js +11 -9
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.js +14 -10
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-group.js +14 -10
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.js +15 -11
- package/dist/collection/components/lime-query-builder/expressions/lime-query-value-input.js +17 -14
- package/dist/collection/components/lime-query-builder/lime-query-builder.js +13 -9
- package/dist/collection/components/lime-query-builder/lime-query-response-format-builder.js +13 -9
- package/dist/collection/components/lime-query-builder/limetype-field/limetype-field.js +22 -19
- package/dist/collection/components/lime-query-builder/order-by/order-by-editor.js +12 -8
- package/dist/collection/components/lime-query-builder/order-by/order-by-item.js +12 -8
- package/dist/collection/components/lime-query-builder/property-selector/property-selector.js +12 -10
- package/dist/collection/components/lime-query-builder/response-format/response-format-editor.js +11 -7
- package/dist/collection/components/lime-query-builder/response-format/response-format-item.js +11 -7
- package/dist/collection/components/limeobject/file-viewer/file-viewer.js +8 -5
- package/dist/collection/components/limeobject/file-viewer/live-docs-info.js +2 -2
- package/dist/collection/components/loader/loader.js +4 -2
- package/dist/collection/components/locale-picker/locale-picker.js +23 -19
- package/dist/collection/components/mention/mention.js +4 -4
- package/dist/collection/components/navigation-button/navigation-button.js +10 -9
- package/dist/collection/components/notification-list/notification-item/notification-item.js +9 -5
- package/dist/collection/components/notification-list/notification-list.js +12 -8
- package/dist/collection/components/object-chip/object-chip.js +7 -6
- package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +21 -19
- package/dist/collection/components/summary-popover/summary-popover.js +28 -21
- package/dist/collection/components/text-editor/mention-group-counter.js +8 -7
- package/dist/collection/components/text-editor/text-editor-picker.js +10 -7
- package/dist/collection/components/text-editor/text-editor.js +37 -29
- package/dist/collection/components/trend-indicator/trend-indicator.js +19 -17
- package/dist/components/_Map.js +1 -342
- package/dist/components/_MapCache.js +1 -433
- package/dist/components/_Uint8Array.js +1 -349
- package/dist/components/_baseIsEqual.js +1 -494
- package/dist/components/_defineProperty.js +1 -13
- package/dist/components/_getTag.js +1 -421
- package/dist/components/chat-icon-list.js +1 -0
- package/dist/components/chat-item.js +1 -184
- package/dist/components/currency-picker.js +1 -1917
- package/dist/components/date-picker.js +1 -151
- package/dist/components/document-item.js +1 -212
- package/dist/components/dom.js +1 -26
- package/dist/components/empty-state.js +1 -61
- package/dist/components/extension-mapping.js +1 -55
- package/dist/components/feed-item-thumbnail-file-info.js +1 -33
- package/dist/components/feed-timeline-item.js +1 -453
- package/dist/components/get.js +1 -308
- package/dist/components/highlight-item.handler.js +1 -36
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.esm.js +1 -963
- package/dist/components/index.js +1 -1
- package/dist/components/isSymbol.js +1 -28
- package/dist/components/kanban-group.js +1 -148
- package/dist/components/kanban-item.js +1 -182
- package/dist/components/keycodes.js +1 -7
- package/dist/components/lime-query-filter-builder.js +1 -132
- package/dist/components/lime-query-filter-comparison.js +1 -180
- package/dist/components/lime-query-filter-expression.js +1 -420
- package/dist/components/lime-query-validation.js +1 -617
- package/dist/components/lime-query-value-input.js +1 -387
- package/dist/components/limebb-alert-dialog.js +1 -71
- package/dist/components/limebb-browser.js +1 -116
- package/dist/components/limebb-chat-icon-list.d.ts +11 -0
- package/dist/components/limebb-chat-icon-list.js +1 -0
- package/dist/components/limebb-chat-item.js +1 -6
- package/dist/components/limebb-chat-list.js +1 -294
- package/dist/components/limebb-component-config.js +1 -176
- package/dist/components/limebb-component-picker.js +1 -180
- package/dist/components/limebb-composer-toolbar.js +1 -136
- package/dist/components/limebb-currency-picker.js +1 -6
- package/dist/components/limebb-dashboard-widget.js +1 -48
- package/dist/components/limebb-data-cells.js +1 -169
- package/dist/components/limebb-date-picker.js +1 -6
- package/dist/components/limebb-date-range.js +1 -83
- package/dist/components/limebb-document-chips.js +1 -437
- package/dist/components/limebb-document-item.js +1 -6
- package/dist/components/limebb-document-picker.js +1 -111
- package/dist/components/limebb-empty-state.js +1 -6
- package/dist/components/limebb-feed-item-thumbnail-file-info.js +1 -6
- package/dist/components/limebb-feed-timeline-item.js +1 -6
- package/dist/components/limebb-feed.js +1 -398
- package/dist/components/limebb-icon-picker.js +1 -53026
- package/dist/components/limebb-info-tile-currency-format.js +1 -116
- package/dist/components/limebb-info-tile-date-format.js +1 -272
- package/dist/components/limebb-info-tile-decimal-format.js +1 -95
- package/dist/components/limebb-info-tile-format.js +1 -144
- package/dist/components/limebb-info-tile-relative-date-format.js +1 -72
- package/dist/components/limebb-info-tile-unit-format.js +1 -183
- package/dist/components/limebb-info-tile.js +1 -626
- package/dist/components/limebb-kanban-group.js +1 -6
- package/dist/components/limebb-kanban-item.js +1 -6
- package/dist/components/limebb-kanban.js +1 -79
- package/dist/components/limebb-lime-query-builder.js +1 -424
- package/dist/components/limebb-lime-query-filter-builder.js +1 -6
- package/dist/components/limebb-lime-query-filter-comparison.js +1 -6
- package/dist/components/limebb-lime-query-filter-expression.js +1 -6
- package/dist/components/limebb-lime-query-filter-group.js +1 -6
- package/dist/components/limebb-lime-query-filter-not.js +1 -6
- package/dist/components/limebb-lime-query-order-by-editor.js +1 -6
- package/dist/components/limebb-lime-query-order-by-item.js +1 -6
- package/dist/components/limebb-lime-query-response-format-builder.js +1 -310
- package/dist/components/limebb-lime-query-response-format-editor.js +1 -6
- package/dist/components/limebb-lime-query-response-format-item.js +1 -6
- package/dist/components/limebb-lime-query-value-input.js +1 -6
- package/dist/components/limebb-limeobject-file-viewer.js +1 -175
- package/dist/components/limebb-limetype-field.js +1 -6
- package/dist/components/limebb-live-docs-info.js +1 -6
- package/dist/components/limebb-loader.js +1 -78
- package/dist/components/limebb-locale-picker.js +1 -1165
- package/dist/components/limebb-mention-group-counter.js +1 -48
- package/dist/components/limebb-mention.js +1 -79
- package/dist/components/limebb-navigation-button.js +1 -6
- package/dist/components/limebb-notification-item.js +1 -6
- package/dist/components/limebb-notification-list.js +1 -253
- package/dist/components/limebb-object-chip.js +1 -253
- package/dist/components/limebb-percentage-visualizer.js +1 -6
- package/dist/components/limebb-property-selector.js +1 -6
- package/dist/components/limebb-summary-popover.js +1 -6
- package/dist/components/limebb-text-editor-picker.js +1 -6
- package/dist/components/limebb-text-editor.js +1 -1902
- package/dist/components/limebb-trend-indicator.js +1 -175
- package/dist/components/limebb-typing-indicator.js +1 -6
- package/dist/components/limetype-field.js +1 -216
- package/dist/components/limetype.js +1 -85
- package/dist/components/live-docs-info.js +1 -34
- package/dist/components/navigation-button.js +1 -74
- package/dist/components/negate.js +1 -40
- package/dist/components/non-null.js +1 -10
- package/dist/components/notification-item.js +1 -168
- package/dist/components/order-by-editor.js +1 -139
- package/dist/components/order-by-item.js +1 -73
- package/dist/components/percentage-class.js +1 -64
- package/dist/components/percentage-visualizer.js +1 -219
- package/dist/components/property-selector.js +1 -372
- package/dist/components/random-string.js +1 -22
- package/dist/components/response-format-editor.js +1 -331
- package/dist/components/response-format-item.js +1 -126
- package/dist/components/summary-popover.js +1 -159
- package/dist/components/text-editor-picker.js +1 -128
- package/dist/components/typing-indicator.js +1 -31
- package/dist/esm/{_Map-aede53b6.js → _Map-ByjZfyP_.js} +8 -20
- package/dist/esm/{_MapCache-af496e9d.js → _MapCache-C_kVhYUl.js} +5 -7
- package/dist/esm/{_Uint8Array-d6ebd526.js → _Uint8Array-DVXPnoWk.js} +6 -10
- package/dist/esm/{_baseIsEqual-077b6bb3.js → _baseIsEqual-DB13O4pD.js} +4 -4
- package/dist/esm/{_defineProperty-e6a185c3.js → _defineProperty-DSmG08hO.js} +2 -4
- package/dist/esm/{_getTag-d02a95fa.js → _getTag-DZlkp9mJ.js} +12 -32
- package/dist/esm/{get-3e42932b.js → get-Bo260bSC.js} +6 -14
- package/dist/esm/{index-d86e55c0.js → index-BIwHMk6j.js} +539 -300
- package/dist/esm/index.esm-BjlE4usG.js +823 -0
- package/dist/esm/{isSymbol-1c5f65cc.js → isSymbol-Ci8cASb6.js} +1 -1
- package/dist/esm/lime-crm-building-blocks.js +6 -5
- package/dist/esm/{lime-query-validation-01797a51.js → lime-query-validation-S9h8L6bg.js} +8 -8
- package/dist/esm/limebb-alert-dialog.entry.js +5 -6
- package/dist/esm/limebb-browser.entry.js +11 -12
- package/dist/esm/limebb-chat-icon-list_3.entry.js +208 -0
- package/dist/esm/limebb-chat-list.entry.js +46 -43
- package/dist/esm/limebb-component-config.entry.js +17 -14
- package/dist/esm/limebb-component-picker.entry.js +9 -10
- package/dist/esm/limebb-composer-toolbar.entry.js +9 -10
- package/dist/esm/limebb-currency-picker.entry.js +1908 -1789
- package/dist/esm/limebb-dashboard-widget.entry.js +4 -5
- package/dist/esm/limebb-data-cells.entry.js +5 -6
- package/dist/esm/limebb-date-picker.entry.js +7 -7
- package/dist/esm/limebb-date-range.entry.js +6 -7
- package/dist/esm/limebb-document-chips.entry.js +10 -9
- package/dist/esm/limebb-document-item.entry.js +6 -7
- package/dist/esm/limebb-document-picker.entry.js +6 -7
- package/dist/esm/limebb-empty-state.entry.js +3 -4
- package/dist/esm/limebb-feed-item-thumbnail-file-info.entry.js +4 -5
- package/dist/esm/limebb-feed-timeline-item.entry.js +8 -9
- package/dist/esm/limebb-feed.entry.js +430 -166
- package/dist/esm/limebb-icon-picker.entry.js +4 -4
- package/dist/esm/limebb-info-tile-currency-format.entry.js +2 -2
- package/dist/esm/limebb-info-tile-date-format.entry.js +4 -5
- package/dist/esm/limebb-info-tile-decimal-format.entry.js +2 -2
- package/dist/esm/limebb-info-tile-format.entry.js +5 -6
- package/dist/esm/limebb-info-tile-relative-date-format.entry.js +2 -2
- package/dist/esm/limebb-info-tile-unit-format.entry.js +2 -2
- package/dist/esm/limebb-info-tile.entry.js +27 -22
- package/dist/esm/limebb-kanban-group.entry.js +8 -9
- package/dist/esm/limebb-kanban-item.entry.js +8 -9
- package/dist/esm/limebb-kanban.entry.js +5 -6
- package/dist/esm/limebb-lime-query-builder.entry.js +9 -10
- package/dist/esm/limebb-lime-query-filter-builder_3.entry.js +27 -27
- package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +26 -28
- package/dist/esm/limebb-lime-query-filter-group_3.entry.js +25 -28
- package/dist/esm/limebb-lime-query-order-by-item.entry.js +6 -7
- package/dist/esm/limebb-lime-query-response-format-builder.entry.js +9 -10
- package/dist/esm/limebb-lime-query-response-format-editor_2.entry.js +8 -10
- package/dist/esm/limebb-limeobject-file-viewer.entry.js +9 -10
- package/dist/esm/limebb-live-docs-info.entry.js +5 -6
- package/dist/esm/limebb-loader.entry.js +12 -8
- package/dist/esm/limebb-locale-picker.entry.js +29 -47
- package/dist/esm/limebb-mention-group-counter.entry.js +5 -6
- package/dist/esm/limebb-mention.entry.js +6 -7
- package/dist/esm/limebb-navigation-button_2.entry.js +10 -12
- package/dist/esm/limebb-notification-item.entry.js +9 -10
- package/dist/esm/limebb-notification-list.entry.js +10 -9
- package/dist/esm/limebb-object-chip.entry.js +16 -13
- package/dist/esm/limebb-percentage-visualizer.entry.js +9 -8
- package/dist/esm/limebb-property-selector.entry.js +9 -10
- package/dist/esm/limebb-text-editor-picker.entry.js +9 -8
- package/dist/esm/limebb-text-editor.entry.js +53 -305
- package/dist/esm/limebb-trend-indicator.entry.js +8 -7
- package/dist/esm/{limetype-12fbba0f.js → limetype-B3nph1qc.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/{p-eb4aa158.entry.js → p-0afc0db2.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-12aadae6.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-1428aa13.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-152edb10.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-1f02a411.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-21ec697f.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-283270c5.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-3252e153.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-3263f8d5.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-32f8477f.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-35a51259.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-38201f65.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-3ef87b11.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-e79f16ca.entry.js → p-4446f170.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-77e7d7da.entry.js → p-49afe71b.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-4ddd75bc.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-528f3635.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-52fb2a66.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-5d87cb38.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-60e22f51.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-62437a1d.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-626421bf.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-62981791.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-685dd8a1.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-94e6f0de.entry.js → p-6cb2d9dd.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-6fdee70a.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-71191041.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-f7122d8e.entry.js → p-740ae712.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-79f3fd73.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-8477cb5d.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-50aad872.entry.js → p-8e2cc2e8.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-9ae55a96.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-B8RiYkLS.js +1 -0
- package/dist/lime-crm-building-blocks/p-BIwHMk6j.js +2 -0
- package/dist/lime-crm-building-blocks/p-BJ8HvfgI.js +1 -0
- package/dist/lime-crm-building-blocks/p-ByjZfyP_.js +1 -0
- package/dist/lime-crm-building-blocks/{p-0a266c26.js → p-CMfAKLlA.js} +1 -1
- package/dist/lime-crm-building-blocks/p-CQ-z_HTt.js +1 -0
- package/dist/lime-crm-building-blocks/p-CcGMZOP-.js +1 -0
- package/dist/lime-crm-building-blocks/p-Dm_AIMQj.js +1 -0
- package/dist/lime-crm-building-blocks/p-V3xfp9dg.js +1 -0
- package/dist/lime-crm-building-blocks/p-aaeecca6.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-ac59093c.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-acbc40f5.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-b2383e7f.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-b36ad4e8.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-ba42e434.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-bac3d599.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-7a6c1595.entry.js → p-bc3de5e3.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-375f40d9.entry.js → p-c3b13800.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-d9f76810.entry.js → p-c6bbcbee.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-cff9bccd.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-d2a01f51.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-dabb227b.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-dbe2c5df.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-e2e9adff.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-ebe6040f.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-eec0a0c8.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-f23ea0e7.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-22fffe85.entry.js → p-fa41a9e6.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-fdf269f7.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-mljVfXwO.js +1 -0
- package/dist/lime-crm-building-blocks/p-wbuFLk-j.js +1 -0
- package/dist/lime-crm-building-blocks/p-yc--7_7T.js +1 -0
- package/dist/types/components/chat-list/chat-icon-list/chat-icon-list.d.ts +19 -0
- package/dist/types/components/chat-list/chat-icon-list/chat-icon-list.types.d.ts +52 -0
- package/dist/types/components/chat-list/chat-list.d.ts +7 -2
- package/dist/types/components/chat-list/chat-list.types.d.ts +13 -0
- package/dist/types/components/chat-list/process-chat-items.d.ts +20 -28
- package/dist/types/components.d.ts +664 -117
- package/dist/types/interface.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +192 -12
- package/package.json +10 -10
- package/dist/cjs/index.esm-e01e9bd4.js +0 -977
- package/dist/cjs/limebb-chat-item_2.cjs.entry.js +0 -181
- package/dist/esm/index.esm-11a8b9e2.js +0 -963
- package/dist/esm/limebb-chat-item_2.entry.js +0 -176
- package/dist/lime-crm-building-blocks/p-0d0f4c0f.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-0eac6b68.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-103654ac.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-123190c3.js +0 -1
- package/dist/lime-crm-building-blocks/p-18d1ab86.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-199799ff.js +0 -1
- package/dist/lime-crm-building-blocks/p-20939cd4.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-20b5ff30.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-2ed843e9.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-35897ec3.js +0 -1
- package/dist/lime-crm-building-blocks/p-3a7b37cc.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-3b3e7328.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-3da67f32.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-4066e17a.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-4b494de7.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-4ca1caf4.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-4dad4ce8.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-52cf8641.js +0 -2
- package/dist/lime-crm-building-blocks/p-5322fd19.js +0 -1
- package/dist/lime-crm-building-blocks/p-53d54dc8.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-579be797.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-6a87a407.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-6ad6a88d.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-6bd5c65f.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-6bf1ab6d.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-703fa2fe.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-7b5a1e83.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-7e6fb4af.js +0 -1
- package/dist/lime-crm-building-blocks/p-7f72be40.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-812bf26e.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-81583fc8.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-81f8e5df.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-87d3f42c.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-8c3f563e.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-95b6eaf5.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-973146f7.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-9bc5caac.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-9c204549.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-9c334694.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-a7e55181.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-b31772c8.js +0 -1
- package/dist/lime-crm-building-blocks/p-b675d5f0.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-b7959ddb.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-d298b34e.js +0 -1
- package/dist/lime-crm-building-blocks/p-d47b6c3c.js +0 -1
- package/dist/lime-crm-building-blocks/p-d5b835a6.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-d7fc530f.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-dddd8a43.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-eb56d4eb.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-f31eeeaa.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-f788a48d.js +0 -1
- package/dist/lime-crm-building-blocks/p-fb292b3f.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-fe2b91d9.js +0 -1
- package/loader/package.json +0 -11
- /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
- /package/dist/cjs/{dom-2ea30350.js → dom--t_vVnyU.js} +0 -0
- /package/dist/cjs/{extension-mapping-63bdafd3.js → extension-mapping-CvK-Mz3f.js} +0 -0
- /package/dist/cjs/{file-extension-7c2eae39.js → file-extension-DolkaRwB.js} +0 -0
- /package/dist/cjs/{highlight-item.handler-584ab58a.js → highlight-item.handler-BVqvzXiD.js} +0 -0
- /package/dist/cjs/{keycodes-88522d7f.js → keycodes-BCQoLEdB.js} +0 -0
- /package/dist/cjs/{negate-e0a2bf77.js → negate-Bg3SqQh6.js} +0 -0
- /package/dist/cjs/{non-null-3bf14aa1.js → non-null-BMnREsqJ.js} +0 -0
- /package/dist/cjs/{percentage-class-012e94d9.js → percentage-class-DVoYzFLR.js} +0 -0
- /package/dist/cjs/{property-resolution-5f798b03.js → property-resolution-Bz1zPcfq.js} +0 -0
- /package/dist/cjs/{random-string-aac0a74b.js → random-string-BdZGIsGg.js} +0 -0
- /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
- /package/dist/esm/{dom-9cc051d7.js → dom-B95D7tDb.js} +0 -0
- /package/dist/esm/{extension-mapping-fcade195.js → extension-mapping-Bcm94u_z.js} +0 -0
- /package/dist/esm/{file-extension-568475d1.js → file-extension-DtnPTzDv.js} +0 -0
- /package/dist/esm/{highlight-item.handler-dfbf11c0.js → highlight-item.handler-BWMpG2bS.js} +0 -0
- /package/dist/esm/{keycodes-58a1fcc9.js → keycodes-CwMJvF_Z.js} +0 -0
- /package/dist/esm/{negate-55744008.js → negate-ooVD-6_a.js} +0 -0
- /package/dist/esm/{non-null-5a66a269.js → non-null-CkTg5UPD.js} +0 -0
- /package/dist/esm/{percentage-class-2766f8ef.js → percentage-class-BaQl_Elp.js} +0 -0
- /package/dist/esm/{property-resolution-e4e8dcf7.js → property-resolution-CQUZjrU4.js} +0 -0
- /package/dist/esm/{random-string-f6ef6fbf.js → random-string-C2JP2nLw.js} +0 -0
- /package/dist/lime-crm-building-blocks/{p-4a85590d.js → p-B95D7tDb.js} +0 -0
- /package/dist/lime-crm-building-blocks/{p-66352a1e.js → p-BWMpG2bS.js} +0 -0
- /package/dist/lime-crm-building-blocks/{p-a99197b1.js → p-BaQl_Elp.js} +0 -0
- /package/dist/lime-crm-building-blocks/{p-ab2a95a6.js → p-Bcm94u_z.js} +0 -0
- /package/dist/lime-crm-building-blocks/{p-fbda77a7.js → p-C2JP2nLw.js} +0 -0
- /package/dist/lime-crm-building-blocks/{p-b02c99d5.js → p-CQUZjrU4.js} +0 -0
- /package/dist/lime-crm-building-blocks/{p-1484e300.js → p-CkTg5UPD.js} +0 -0
- /package/dist/lime-crm-building-blocks/{p-463d3174.js → p-CwMJvF_Z.js} +0 -0
- /package/dist/lime-crm-building-blocks/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
- /package/dist/lime-crm-building-blocks/{p-b42e9740.js → p-DtnPTzDv.js} +0 -0
- /package/dist/lime-crm-building-blocks/{p-7c9484b1.js → p-ooVD-6_a.js} +0 -0
|
@@ -1,116 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { d as defineCustomElement$2 } from './currency-picker.js';
|
|
3
|
-
|
|
4
|
-
const InfoTileAdminConfig = /*@__PURE__*/ proxyCustomElement(class InfoTileAdminConfig extends HTMLElement {
|
|
5
|
-
constructor() {
|
|
6
|
-
super();
|
|
7
|
-
this.__registerHost();
|
|
8
|
-
this.__attachShadow();
|
|
9
|
-
this.change = createEvent(this, "change", 7);
|
|
10
|
-
this.getOptionValue = (option) => option.value;
|
|
11
|
-
this.getAffixValue = (option) => {
|
|
12
|
-
if (!option.value) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
return [option.value];
|
|
16
|
-
};
|
|
17
|
-
this.handleChangeOptions = (property, getValue = (value) => value) => (event) => {
|
|
18
|
-
event.stopPropagation();
|
|
19
|
-
this.change.emit(Object.assign(Object.assign({}, this.value), { options: Object.assign(Object.assign({ maximumFractionDigits: 0 }, this.value.options), { [property]: getValue(event.detail) || undefined }) }));
|
|
20
|
-
};
|
|
21
|
-
this.handleChangeAffix = (property) => (event) => {
|
|
22
|
-
event.stopPropagation();
|
|
23
|
-
this.change.emit(Object.assign(Object.assign({}, this.value), { [property]: this.getAffixValue(event.detail) }));
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
return [
|
|
28
|
-
this.renderNotation(),
|
|
29
|
-
this.renderCurrency(),
|
|
30
|
-
this.renderCurrencyDisplay(),
|
|
31
|
-
this.renderAffix('prefix'),
|
|
32
|
-
this.renderAffix('suffix'),
|
|
33
|
-
];
|
|
34
|
-
}
|
|
35
|
-
renderCurrency() {
|
|
36
|
-
var _a;
|
|
37
|
-
return (h("limebb-currency-picker", { platform: this.platform, context: this.context, label: "Currency", value: (_a = this.value.options) === null || _a === void 0 ? void 0 : _a.currency, onChange: this.handleChangeOptions('currency') }));
|
|
38
|
-
}
|
|
39
|
-
renderCurrencyDisplay() {
|
|
40
|
-
const options = [
|
|
41
|
-
{
|
|
42
|
-
text: 'ISO currency code',
|
|
43
|
-
value: 'code',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
text: 'Localized currency symbol',
|
|
47
|
-
value: 'symbol',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
text: 'Localized currency name',
|
|
51
|
-
value: 'name',
|
|
52
|
-
},
|
|
53
|
-
];
|
|
54
|
-
const value = options.find((o) => { var _a; return o.value === ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.currencyDisplay); });
|
|
55
|
-
return (h("limel-select", { label: "Currency display", options: options, value: value, onChange: this.handleChangeOptions('currencyDisplay', this.getOptionValue) }));
|
|
56
|
-
}
|
|
57
|
-
renderNotation() {
|
|
58
|
-
const options = [
|
|
59
|
-
{
|
|
60
|
-
text: 'Standard',
|
|
61
|
-
value: 'standard',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
text: 'Compact',
|
|
65
|
-
value: 'compact',
|
|
66
|
-
},
|
|
67
|
-
];
|
|
68
|
-
const value = options.find((o) => { var _a; return o.value === ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.notation); });
|
|
69
|
-
return (h("limel-select", { label: "Notation", helperText: "The formatting that should be displayed for the number", options: options, value: value, onChange: this.handleChangeOptions('notation', this.getOptionValue) }));
|
|
70
|
-
}
|
|
71
|
-
renderAffix(affix) {
|
|
72
|
-
const options = [
|
|
73
|
-
{
|
|
74
|
-
text: '',
|
|
75
|
-
value: '',
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
text: 'Compact notation',
|
|
79
|
-
value: 'compact',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
text: 'Currency',
|
|
83
|
-
value: 'currency',
|
|
84
|
-
},
|
|
85
|
-
];
|
|
86
|
-
const value = options.find((o) => { var _a; return o.value && ((_a = this.value[affix]) === null || _a === void 0 ? void 0 : _a.includes(o.value)); });
|
|
87
|
-
return (h("limel-select", { label: affix.charAt(0).toUpperCase() + affix.slice(1), options: options, value: value, onChange: this.handleChangeAffix(affix) }));
|
|
88
|
-
}
|
|
89
|
-
}, [1, "limebb-info-tile-currency-format", {
|
|
90
|
-
"platform": [16],
|
|
91
|
-
"context": [16],
|
|
92
|
-
"value": [16]
|
|
93
|
-
}]);
|
|
94
|
-
function defineCustomElement$1() {
|
|
95
|
-
if (typeof customElements === "undefined") {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
const components = ["limebb-info-tile-currency-format", "limebb-currency-picker"];
|
|
99
|
-
components.forEach(tagName => { switch (tagName) {
|
|
100
|
-
case "limebb-info-tile-currency-format":
|
|
101
|
-
if (!customElements.get(tagName)) {
|
|
102
|
-
customElements.define(tagName, InfoTileAdminConfig);
|
|
103
|
-
}
|
|
104
|
-
break;
|
|
105
|
-
case "limebb-currency-picker":
|
|
106
|
-
if (!customElements.get(tagName)) {
|
|
107
|
-
defineCustomElement$2();
|
|
108
|
-
}
|
|
109
|
-
break;
|
|
110
|
-
} });
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const LimebbInfoTileCurrencyFormat = InfoTileAdminConfig;
|
|
114
|
-
const defineCustomElement = defineCustomElement$1;
|
|
115
|
-
|
|
116
|
-
export { LimebbInfoTileCurrencyFormat, defineCustomElement };
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as t,createEvent as r,h as i,transformTag as n}from"@stencil/core/internal/client";import{d as c}from"./currency-picker.js";const o=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.change=r(this,"change",7),this.getOptionValue=e=>e.value,this.getAffixValue=e=>{if(e.value)return[e.value]},this.handleChangeOptions=(e,t=e=>e)=>r=>{r.stopPropagation(),this.change.emit(Object.assign(Object.assign({},this.value),{options:Object.assign(Object.assign({maximumFractionDigits:0},this.value.options),{[e]:t(r.detail)||void 0})}))},this.handleChangeAffix=e=>t=>{t.stopPropagation(),this.change.emit(Object.assign(Object.assign({},this.value),{[e]:this.getAffixValue(t.detail)}))}}render(){return[this.renderNotation(),this.renderCurrency(),this.renderCurrencyDisplay(),this.renderAffix("prefix"),this.renderAffix("suffix")]}renderCurrency(){var e;return i("limebb-currency-picker",{platform:this.platform,context:this.context,label:"Currency",value:null===(e=this.value.options)||void 0===e?void 0:e.currency,onChange:this.handleChangeOptions("currency")})}renderCurrencyDisplay(){const e=[{text:"ISO currency code",value:"code"},{text:"Localized currency symbol",value:"symbol"},{text:"Localized currency name",value:"name"}],t=e.find((e=>{var t;return e.value===(null===(t=this.value.options)||void 0===t?void 0:t.currencyDisplay)}));return i("limel-select",{label:"Currency display",options:e,value:t,onChange:this.handleChangeOptions("currencyDisplay",this.getOptionValue)})}renderNotation(){const e=[{text:"Standard",value:"standard"},{text:"Compact",value:"compact"}],t=e.find((e=>{var t;return e.value===(null===(t=this.value.options)||void 0===t?void 0:t.notation)}));return i("limel-select",{label:"Notation",helperText:"The formatting that should be displayed for the number",options:e,value:t,onChange:this.handleChangeOptions("notation",this.getOptionValue)})}renderAffix(e){const t=[{text:"",value:""},{text:"Compact notation",value:"compact"},{text:"Currency",value:"currency"}],r=t.find((t=>{var r;return t.value&&(null===(r=this.value[e])||void 0===r?void 0:r.includes(t.value))}));return i("limel-select",{label:e.charAt(0).toUpperCase()+e.slice(1),options:t,value:r,onChange:this.handleChangeAffix(e)})}},[1,"limebb-info-tile-currency-format",{platform:[16],context:[16],value:[16]}]),s=o,l=function(){"undefined"!=typeof customElements&&["limebb-info-tile-currency-format","limebb-currency-picker"].forEach((e=>{switch(e){case"limebb-info-tile-currency-format":customElements.get(n(e))||customElements.define(n(e),o);break;case"limebb-currency-picker":customElements.get(n(e))||c()}}))};export{s as LimebbInfoTileCurrencyFormat,l as defineCustomElement}
|
|
@@ -1,272 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const infoTileDateFormatCss = "*{box-sizing:border-box}:host(limebb-info-tile-date-format){display:grid;gap:0.5rem;grid-template-columns:1fr 1fr !important}limel-header{flex-wrap:wrap;grid-column:1/-1;overflow:hidden;border-radius:0.7rem;border:1px solid rgb(var(--contrast-100))}limel-header section{width:100%;padding:0.5rem;display:grid;gap:0.5rem;grid-template-columns:repeat(auto-fit, minmax(8rem, 1fr))}";
|
|
4
|
-
const LimebbInfoTileDateFormatStyle0 = infoTileDateFormatCss;
|
|
5
|
-
|
|
6
|
-
const InfoTileAdminConfig = /*@__PURE__*/ proxyCustomElement(class InfoTileAdminConfig extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
this.change = createEvent(this, "change", 7);
|
|
12
|
-
this.getOptionValue = (option) => option.value || undefined;
|
|
13
|
-
this.getAffixValue = (options) => {
|
|
14
|
-
if (options.length === 0) {
|
|
15
|
-
return [];
|
|
16
|
-
}
|
|
17
|
-
return options.map((o) => o.value);
|
|
18
|
-
};
|
|
19
|
-
this.handleChangeOptions = (property, getValue = (value) => value) => (event) => {
|
|
20
|
-
event.stopPropagation();
|
|
21
|
-
this.change.emit(Object.assign(Object.assign({}, this.value), { options: Object.assign(Object.assign({}, this.value.options), { [property]: getValue(event.detail) || undefined }) }));
|
|
22
|
-
};
|
|
23
|
-
this.handleChangeAffix = (property) => (event) => {
|
|
24
|
-
event.stopPropagation();
|
|
25
|
-
this.change.emit(Object.assign(Object.assign({}, this.value), { [property]: this.getAffixValue(event.detail) }));
|
|
26
|
-
};
|
|
27
|
-
this.handleChangeHour12 = (event) => {
|
|
28
|
-
event.stopPropagation();
|
|
29
|
-
let value = JSON.parse(event.detail.value);
|
|
30
|
-
if (value === null) {
|
|
31
|
-
value = undefined;
|
|
32
|
-
}
|
|
33
|
-
this.change.emit(Object.assign(Object.assign({}, this.value), { options: Object.assign(Object.assign({}, this.value.options), { hour12: value }) }));
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
render() {
|
|
37
|
-
return [
|
|
38
|
-
this.renderDate(),
|
|
39
|
-
this.renderTime(),
|
|
40
|
-
this.renderAffix('prefix'),
|
|
41
|
-
this.renderAffix('suffix'),
|
|
42
|
-
];
|
|
43
|
-
}
|
|
44
|
-
renderDate() {
|
|
45
|
-
return (h("limel-header", { icon: "calendar", heading: "Date settings" }, h("section", null, this.renderDay(), this.renderMonth(), this.renderYear(), this.renderWeekday())));
|
|
46
|
-
}
|
|
47
|
-
renderDay() {
|
|
48
|
-
const options = [
|
|
49
|
-
{
|
|
50
|
-
value: '',
|
|
51
|
-
text: '',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
value: '2-digit',
|
|
55
|
-
text: '2 digit',
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
value: 'numeric',
|
|
59
|
-
text: 'Numeric',
|
|
60
|
-
},
|
|
61
|
-
];
|
|
62
|
-
const value = options.find((o) => { var _a; return o.value && o.value === ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.day); });
|
|
63
|
-
return (h("limel-select", { label: "Day", options: options, value: value, onChange: this.handleChangeOptions('day', this.getOptionValue) }));
|
|
64
|
-
}
|
|
65
|
-
renderMonth() {
|
|
66
|
-
const options = [
|
|
67
|
-
{
|
|
68
|
-
value: '',
|
|
69
|
-
text: '',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
value: 'long',
|
|
73
|
-
text: 'Long',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
value: 'narrow',
|
|
77
|
-
text: 'Narrow',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
value: 'short',
|
|
81
|
-
text: 'Short',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
value: '2-digit',
|
|
85
|
-
text: '2 digit',
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
value: 'numeric',
|
|
89
|
-
text: 'Numeric',
|
|
90
|
-
},
|
|
91
|
-
];
|
|
92
|
-
const value = options.find((o) => { var _a; return o.value && o.value === ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.month); });
|
|
93
|
-
return (h("limel-select", { label: "Month", options: options, value: value, onChange: this.handleChangeOptions('month', this.getOptionValue) }));
|
|
94
|
-
}
|
|
95
|
-
renderYear() {
|
|
96
|
-
const options = [
|
|
97
|
-
{
|
|
98
|
-
value: '',
|
|
99
|
-
text: '',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
value: '2-digit',
|
|
103
|
-
text: '2 digit',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
value: 'numeric',
|
|
107
|
-
text: 'Numeric',
|
|
108
|
-
},
|
|
109
|
-
];
|
|
110
|
-
const value = options.find((o) => { var _a; return o.value && o.value === ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.year); });
|
|
111
|
-
return (h("limel-select", { label: "Year", options: options, value: value, onChange: this.handleChangeOptions('year', this.getOptionValue) }));
|
|
112
|
-
}
|
|
113
|
-
renderWeekday() {
|
|
114
|
-
const options = [
|
|
115
|
-
{
|
|
116
|
-
value: '',
|
|
117
|
-
text: '',
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
value: 'long',
|
|
121
|
-
text: 'Long',
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
value: 'narrow',
|
|
125
|
-
text: 'Narrow',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
value: 'short',
|
|
129
|
-
text: 'Short',
|
|
130
|
-
},
|
|
131
|
-
];
|
|
132
|
-
const value = options.find((o) => { var _a; return o.value && o.value === ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.weekday); });
|
|
133
|
-
return (h("limel-select", { label: "Weekday", options: options, value: value, onChange: this.handleChangeOptions('weekday', this.getOptionValue) }));
|
|
134
|
-
}
|
|
135
|
-
renderTime() {
|
|
136
|
-
return (h("limel-header", { icon: "clock", heading: "Time settings" }, h("section", null, this.renderHour(), this.renderMinute(), this.renderSecond(), this.renderHour12())));
|
|
137
|
-
}
|
|
138
|
-
renderHour() {
|
|
139
|
-
const options = [
|
|
140
|
-
{
|
|
141
|
-
value: '',
|
|
142
|
-
text: '',
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
value: '2-digit',
|
|
146
|
-
text: '2 digit',
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
value: 'numeric',
|
|
150
|
-
text: 'Numeric',
|
|
151
|
-
},
|
|
152
|
-
];
|
|
153
|
-
const value = options.find((o) => { var _a; return o.value && o.value === ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.hour); });
|
|
154
|
-
return (h("limel-select", { label: "Hour", options: options, value: value, onChange: this.handleChangeOptions('hour', this.getOptionValue) }));
|
|
155
|
-
}
|
|
156
|
-
renderMinute() {
|
|
157
|
-
const options = [
|
|
158
|
-
{
|
|
159
|
-
value: '',
|
|
160
|
-
text: '',
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
value: '2-digit',
|
|
164
|
-
text: '2 digit',
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
value: 'numeric',
|
|
168
|
-
text: 'Numeric',
|
|
169
|
-
},
|
|
170
|
-
];
|
|
171
|
-
const value = options.find((o) => { var _a; return o.value && o.value === ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.minute); });
|
|
172
|
-
return (h("limel-select", { label: "Minute", options: options, value: value, onChange: this.handleChangeOptions('minute', this.getOptionValue) }));
|
|
173
|
-
}
|
|
174
|
-
renderSecond() {
|
|
175
|
-
const options = [
|
|
176
|
-
{
|
|
177
|
-
value: '',
|
|
178
|
-
text: '',
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
value: '2-digit',
|
|
182
|
-
text: '2 digit',
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
value: 'numeric',
|
|
186
|
-
text: 'Numeric',
|
|
187
|
-
},
|
|
188
|
-
];
|
|
189
|
-
const value = options.find((o) => { var _a; return o.value && o.value === ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.second); });
|
|
190
|
-
return (h("limel-select", { label: "Second", options: options, value: value, onChange: this.handleChangeOptions('second', this.getOptionValue) }));
|
|
191
|
-
}
|
|
192
|
-
renderHour12() {
|
|
193
|
-
const options = [
|
|
194
|
-
{
|
|
195
|
-
value: 'null',
|
|
196
|
-
text: 'Default',
|
|
197
|
-
secondaryText: 'Locale dependent',
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
value: 'true',
|
|
201
|
-
text: '12 hour',
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
value: 'false',
|
|
205
|
-
text: '24 hour',
|
|
206
|
-
},
|
|
207
|
-
];
|
|
208
|
-
const value = options.find((o) => {
|
|
209
|
-
var _a, _b;
|
|
210
|
-
if (o.value === String((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.hour12)) {
|
|
211
|
-
return true;
|
|
212
|
-
}
|
|
213
|
-
return (o.value === 'null' && ((_b = this.value.options) === null || _b === void 0 ? void 0 : _b.hour12) === undefined);
|
|
214
|
-
});
|
|
215
|
-
return (h("limel-select", { label: "Clock format", options: options, value: value, onChange: this.handleChangeHour12 }));
|
|
216
|
-
}
|
|
217
|
-
renderAffix(affix) {
|
|
218
|
-
const options = [
|
|
219
|
-
{
|
|
220
|
-
text: 'Weekday',
|
|
221
|
-
value: 'weekday',
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
text: 'Day',
|
|
225
|
-
value: 'day',
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
text: 'Month',
|
|
229
|
-
value: 'month',
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
text: 'Year',
|
|
233
|
-
value: 'year',
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
text: 'Hour',
|
|
237
|
-
value: 'hour',
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
text: 'Minute',
|
|
241
|
-
value: 'minute',
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
text: 'Second',
|
|
245
|
-
value: 'second',
|
|
246
|
-
},
|
|
247
|
-
].map((option) => (Object.assign(Object.assign({}, option), { disabled: !Object.keys(this.value.options || {}).includes(option.value) })));
|
|
248
|
-
const value = options.filter((o) => { var _a; return o.value && ((_a = this.value[affix]) === null || _a === void 0 ? void 0 : _a.includes(o.value)); });
|
|
249
|
-
return (h("limel-select", { multiple: true, label: affix.charAt(0).toUpperCase() + affix.slice(1), options: options, value: value, onChange: this.handleChangeAffix(affix) }));
|
|
250
|
-
}
|
|
251
|
-
static get style() { return LimebbInfoTileDateFormatStyle0; }
|
|
252
|
-
}, [1, "limebb-info-tile-date-format", {
|
|
253
|
-
"value": [16]
|
|
254
|
-
}]);
|
|
255
|
-
function defineCustomElement$1() {
|
|
256
|
-
if (typeof customElements === "undefined") {
|
|
257
|
-
return;
|
|
258
|
-
}
|
|
259
|
-
const components = ["limebb-info-tile-date-format"];
|
|
260
|
-
components.forEach(tagName => { switch (tagName) {
|
|
261
|
-
case "limebb-info-tile-date-format":
|
|
262
|
-
if (!customElements.get(tagName)) {
|
|
263
|
-
customElements.define(tagName, InfoTileAdminConfig);
|
|
264
|
-
}
|
|
265
|
-
break;
|
|
266
|
-
} });
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
const LimebbInfoTileDateFormat = InfoTileAdminConfig;
|
|
270
|
-
const defineCustomElement = defineCustomElement$1;
|
|
271
|
-
|
|
272
|
-
export { LimebbInfoTileDateFormat, defineCustomElement };
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as t,createEvent as i,h as l,transformTag as r}from"@stencil/core/internal/client";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.change=i(this,"change",7),this.getOptionValue=e=>e.value||void 0,this.getAffixValue=e=>0===e.length?[]:e.map((e=>e.value)),this.handleChangeOptions=(e,t=e=>e)=>i=>{i.stopPropagation(),this.change.emit(Object.assign(Object.assign({},this.value),{options:Object.assign(Object.assign({},this.value.options),{[e]:t(i.detail)||void 0})}))},this.handleChangeAffix=e=>t=>{t.stopPropagation(),this.change.emit(Object.assign(Object.assign({},this.value),{[e]:this.getAffixValue(t.detail)}))},this.handleChangeHour12=e=>{e.stopPropagation();let t=JSON.parse(e.detail.value);null===t&&(t=void 0),this.change.emit(Object.assign(Object.assign({},this.value),{options:Object.assign(Object.assign({},this.value.options),{hour12:t})}))}}render(){return[this.renderDate(),this.renderTime(),this.renderAffix("prefix"),this.renderAffix("suffix")]}renderDate(){return l("limel-header",{icon:"calendar",heading:"Date settings"},l("section",null,this.renderDay(),this.renderMonth(),this.renderYear(),this.renderWeekday()))}renderDay(){const e=[{value:"",text:""},{value:"2-digit",text:"2 digit"},{value:"numeric",text:"Numeric"}],t=e.find((e=>{var t;return e.value&&e.value===(null===(t=this.value.options)||void 0===t?void 0:t.day)}));return l("limel-select",{label:"Day",options:e,value:t,onChange:this.handleChangeOptions("day",this.getOptionValue)})}renderMonth(){const e=[{value:"",text:""},{value:"long",text:"Long"},{value:"narrow",text:"Narrow"},{value:"short",text:"Short"},{value:"2-digit",text:"2 digit"},{value:"numeric",text:"Numeric"}],t=e.find((e=>{var t;return e.value&&e.value===(null===(t=this.value.options)||void 0===t?void 0:t.month)}));return l("limel-select",{label:"Month",options:e,value:t,onChange:this.handleChangeOptions("month",this.getOptionValue)})}renderYear(){const e=[{value:"",text:""},{value:"2-digit",text:"2 digit"},{value:"numeric",text:"Numeric"}],t=e.find((e=>{var t;return e.value&&e.value===(null===(t=this.value.options)||void 0===t?void 0:t.year)}));return l("limel-select",{label:"Year",options:e,value:t,onChange:this.handleChangeOptions("year",this.getOptionValue)})}renderWeekday(){const e=[{value:"",text:""},{value:"long",text:"Long"},{value:"narrow",text:"Narrow"},{value:"short",text:"Short"}],t=e.find((e=>{var t;return e.value&&e.value===(null===(t=this.value.options)||void 0===t?void 0:t.weekday)}));return l("limel-select",{label:"Weekday",options:e,value:t,onChange:this.handleChangeOptions("weekday",this.getOptionValue)})}renderTime(){return l("limel-header",{icon:"clock",heading:"Time settings"},l("section",null,this.renderHour(),this.renderMinute(),this.renderSecond(),this.renderHour12()))}renderHour(){const e=[{value:"",text:""},{value:"2-digit",text:"2 digit"},{value:"numeric",text:"Numeric"}],t=e.find((e=>{var t;return e.value&&e.value===(null===(t=this.value.options)||void 0===t?void 0:t.hour)}));return l("limel-select",{label:"Hour",options:e,value:t,onChange:this.handleChangeOptions("hour",this.getOptionValue)})}renderMinute(){const e=[{value:"",text:""},{value:"2-digit",text:"2 digit"},{value:"numeric",text:"Numeric"}],t=e.find((e=>{var t;return e.value&&e.value===(null===(t=this.value.options)||void 0===t?void 0:t.minute)}));return l("limel-select",{label:"Minute",options:e,value:t,onChange:this.handleChangeOptions("minute",this.getOptionValue)})}renderSecond(){const e=[{value:"",text:""},{value:"2-digit",text:"2 digit"},{value:"numeric",text:"Numeric"}],t=e.find((e=>{var t;return e.value&&e.value===(null===(t=this.value.options)||void 0===t?void 0:t.second)}));return l("limel-select",{label:"Second",options:e,value:t,onChange:this.handleChangeOptions("second",this.getOptionValue)})}renderHour12(){const e=[{value:"null",text:"Default",secondaryText:"Locale dependent"},{value:"true",text:"12 hour"},{value:"false",text:"24 hour"}],t=e.find((e=>{var t,i;return e.value===(null===(t=this.value.options)||void 0===t?void 0:t.hour12)+""||"null"===e.value&&void 0===(null===(i=this.value.options)||void 0===i?void 0:i.hour12)}));return l("limel-select",{label:"Clock format",options:e,value:t,onChange:this.handleChangeHour12})}renderAffix(e){const t=[{text:"Weekday",value:"weekday"},{text:"Day",value:"day"},{text:"Month",value:"month"},{text:"Year",value:"year"},{text:"Hour",value:"hour"},{text:"Minute",value:"minute"},{text:"Second",value:"second"}].map((e=>Object.assign(Object.assign({},e),{disabled:!Object.keys(this.value.options||{}).includes(e.value)}))),i=t.filter((t=>{var i;return t.value&&(null===(i=this.value[e])||void 0===i?void 0:i.includes(t.value))}));return l("limel-select",{multiple:!0,label:e.charAt(0).toUpperCase()+e.slice(1),options:t,value:i,onChange:this.handleChangeAffix(e)})}static get style(){return"*{box-sizing:border-box}:host(limebb-info-tile-date-format){display:grid;gap:0.5rem;grid-template-columns:1fr 1fr !important}limel-header{flex-wrap:wrap;grid-column:1/-1;overflow:hidden;border-radius:0.7rem;border:1px solid rgb(var(--contrast-100))}limel-header section{width:100%;padding:0.5rem;display:grid;gap:0.5rem;grid-template-columns:repeat(auto-fit, minmax(8rem, 1fr))}"}},[1,"limebb-info-tile-date-format",{value:[16]}]),o=n,a=function(){"undefined"!=typeof customElements&&["limebb-info-tile-date-format"].forEach((e=>{"limebb-info-tile-date-format"===e&&(customElements.get(r(e))||customElements.define(r(e),n))}))};export{o as LimebbInfoTileDateFormat,a as defineCustomElement}
|
|
@@ -1,95 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const InfoTileAdminConfig = /*@__PURE__*/ proxyCustomElement(class InfoTileAdminConfig extends HTMLElement {
|
|
4
|
-
constructor() {
|
|
5
|
-
super();
|
|
6
|
-
this.__registerHost();
|
|
7
|
-
this.__attachShadow();
|
|
8
|
-
this.change = createEvent(this, "change", 7);
|
|
9
|
-
this.getOptionValue = (option) => option.value;
|
|
10
|
-
this.getAffixValue = (option) => {
|
|
11
|
-
if (!option.value) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
return [option.value];
|
|
15
|
-
};
|
|
16
|
-
this.handleChangeOptions = (property, getValue = (value) => value) => (event) => {
|
|
17
|
-
event.stopPropagation();
|
|
18
|
-
this.change.emit(Object.assign(Object.assign({}, this.value), { options: Object.assign(Object.assign({}, this.value.options), { [property]: getValue(event.detail) || undefined }) }));
|
|
19
|
-
};
|
|
20
|
-
this.handleChangeAffix = (property) => (event) => {
|
|
21
|
-
event.stopPropagation();
|
|
22
|
-
this.change.emit(Object.assign(Object.assign({}, this.value), { [property]: this.getAffixValue(event.detail) }));
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
return [
|
|
27
|
-
this.renderNotation(),
|
|
28
|
-
this.renderCompactDisplay(),
|
|
29
|
-
this.renderAffix('prefix'),
|
|
30
|
-
this.renderAffix('suffix'),
|
|
31
|
-
];
|
|
32
|
-
}
|
|
33
|
-
renderNotation() {
|
|
34
|
-
const options = [
|
|
35
|
-
{
|
|
36
|
-
text: 'Standard',
|
|
37
|
-
value: 'standard',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
text: 'Compact',
|
|
41
|
-
value: 'compact',
|
|
42
|
-
},
|
|
43
|
-
];
|
|
44
|
-
const value = options.find((o) => { var _a; return o.value === ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.notation); });
|
|
45
|
-
return (h("limel-select", { label: "Notation", helperText: "The formatting that should be displayed for the number", options: options, value: value, onChange: this.handleChangeOptions('notation', this.getOptionValue) }));
|
|
46
|
-
}
|
|
47
|
-
renderCompactDisplay() {
|
|
48
|
-
const options = [
|
|
49
|
-
{
|
|
50
|
-
text: 'Short',
|
|
51
|
-
value: 'short',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
text: 'Long',
|
|
55
|
-
value: 'long',
|
|
56
|
-
},
|
|
57
|
-
];
|
|
58
|
-
const value = options.find((o) => { var _a; return o.value === ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.compactDisplay); });
|
|
59
|
-
return (h("limel-select", { label: "Compact display", options: options, value: value, onChange: this.handleChangeOptions('compactDisplay', this.getOptionValue) }));
|
|
60
|
-
}
|
|
61
|
-
renderAffix(affix) {
|
|
62
|
-
const options = [
|
|
63
|
-
{
|
|
64
|
-
text: '',
|
|
65
|
-
value: '',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
text: 'Compact notation',
|
|
69
|
-
value: 'compact',
|
|
70
|
-
},
|
|
71
|
-
];
|
|
72
|
-
const value = options.find((o) => { var _a; return o.value && ((_a = this.value[affix]) === null || _a === void 0 ? void 0 : _a.includes(o.value)); });
|
|
73
|
-
return (h("limel-select", { label: affix.charAt(0).toUpperCase() + affix.slice(1), options: options, value: value, onChange: this.handleChangeAffix(affix) }));
|
|
74
|
-
}
|
|
75
|
-
}, [1, "limebb-info-tile-decimal-format", {
|
|
76
|
-
"value": [16]
|
|
77
|
-
}]);
|
|
78
|
-
function defineCustomElement$1() {
|
|
79
|
-
if (typeof customElements === "undefined") {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
const components = ["limebb-info-tile-decimal-format"];
|
|
83
|
-
components.forEach(tagName => { switch (tagName) {
|
|
84
|
-
case "limebb-info-tile-decimal-format":
|
|
85
|
-
if (!customElements.get(tagName)) {
|
|
86
|
-
customElements.define(tagName, InfoTileAdminConfig);
|
|
87
|
-
}
|
|
88
|
-
break;
|
|
89
|
-
} });
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const LimebbInfoTileDecimalFormat = InfoTileAdminConfig;
|
|
93
|
-
const defineCustomElement = defineCustomElement$1;
|
|
94
|
-
|
|
95
|
-
export { LimebbInfoTileDecimalFormat, defineCustomElement };
|
|
1
|
+
import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as o,transformTag as n}from"@stencil/core/internal/client";const s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.change=i(this,"change",7),this.getOptionValue=t=>t.value,this.getAffixValue=t=>{if(t.value)return[t.value]},this.handleChangeOptions=(t,e=t=>t)=>i=>{i.stopPropagation(),this.change.emit(Object.assign(Object.assign({},this.value),{options:Object.assign(Object.assign({},this.value.options),{[t]:e(i.detail)||void 0})}))},this.handleChangeAffix=t=>e=>{e.stopPropagation(),this.change.emit(Object.assign(Object.assign({},this.value),{[t]:this.getAffixValue(e.detail)}))}}render(){return[this.renderNotation(),this.renderCompactDisplay(),this.renderAffix("prefix"),this.renderAffix("suffix")]}renderNotation(){const t=[{text:"Standard",value:"standard"},{text:"Compact",value:"compact"}],e=t.find((t=>{var e;return t.value===(null===(e=this.value.options)||void 0===e?void 0:e.notation)}));return o("limel-select",{label:"Notation",helperText:"The formatting that should be displayed for the number",options:t,value:e,onChange:this.handleChangeOptions("notation",this.getOptionValue)})}renderCompactDisplay(){const t=[{text:"Short",value:"short"},{text:"Long",value:"long"}],e=t.find((t=>{var e;return t.value===(null===(e=this.value.options)||void 0===e?void 0:e.compactDisplay)}));return o("limel-select",{label:"Compact display",options:t,value:e,onChange:this.handleChangeOptions("compactDisplay",this.getOptionValue)})}renderAffix(t){const e=[{text:"",value:""},{text:"Compact notation",value:"compact"}],i=e.find((e=>{var i;return e.value&&(null===(i=this.value[t])||void 0===i?void 0:i.includes(e.value))}));return o("limel-select",{label:t.charAt(0).toUpperCase()+t.slice(1),options:e,value:i,onChange:this.handleChangeAffix(t)})}},[1,"limebb-info-tile-decimal-format",{value:[16]}]),l=s,a=function(){"undefined"!=typeof customElements&&["limebb-info-tile-decimal-format"].forEach((t=>{"limebb-info-tile-decimal-format"===t&&(customElements.get(n(t))||customElements.define(n(t),s))}))};export{l as LimebbInfoTileDecimalFormat,a as defineCustomElement}
|
|
@@ -1,144 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const infoTileFormatCss = ":host(limebb-info-tile-format){display:grid;gap:1rem}limel-button-group{grid-column:1/-1}.format{display:grid;gap:0.5rem;grid-template-columns:repeat(auto-fit, minmax(8rem, 1fr))}";
|
|
4
|
-
const LimebbInfoTileFormatStyle0 = infoTileFormatCss;
|
|
5
|
-
|
|
6
|
-
const InfoTileAdminConfig = /*@__PURE__*/ proxyCustomElement(class InfoTileAdminConfig extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
this.change = createEvent(this, "change", 7);
|
|
12
|
-
this.handleChangeType = (event) => {
|
|
13
|
-
event.stopPropagation();
|
|
14
|
-
const id = event.detail.id;
|
|
15
|
-
if (id === 'none') {
|
|
16
|
-
this.change.emit();
|
|
17
|
-
}
|
|
18
|
-
else if (id === 'date' || id === 'relative-date') {
|
|
19
|
-
this.change.emit({
|
|
20
|
-
type: id,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
else if (id === 'percent') {
|
|
24
|
-
this.change.emit({
|
|
25
|
-
type: 'number',
|
|
26
|
-
options: {
|
|
27
|
-
style: 'percent',
|
|
28
|
-
},
|
|
29
|
-
suffix: ['percentSign'],
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
this.change.emit({
|
|
34
|
-
type: 'number',
|
|
35
|
-
options: {
|
|
36
|
-
style: id,
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
this.isValidButton = (button) => {
|
|
42
|
-
if (!this.type) {
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
if (button.id === 'none') {
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
if (this.type === 'none') {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
if (this.type === 'date') {
|
|
52
|
-
return button.id.includes('date');
|
|
53
|
-
}
|
|
54
|
-
return !button.id.includes('date');
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
render() {
|
|
58
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
59
|
-
const buttons = [
|
|
60
|
-
{ id: 'none', title: 'No formatting', selected: !((_a = this.value) === null || _a === void 0 ? void 0 : _a.type) },
|
|
61
|
-
{
|
|
62
|
-
id: 'currency',
|
|
63
|
-
title: 'Currency',
|
|
64
|
-
selected: ((_b = this.value) === null || _b === void 0 ? void 0 : _b.type) === 'number' &&
|
|
65
|
-
((_c = this.value.options) === null || _c === void 0 ? void 0 : _c.style) === 'currency',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: 'decimal',
|
|
69
|
-
title: 'Decimal',
|
|
70
|
-
selected: ((_d = this.value) === null || _d === void 0 ? void 0 : _d.type) === 'number' &&
|
|
71
|
-
((_e = this.value.options) === null || _e === void 0 ? void 0 : _e.style) === 'decimal',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: 'percent',
|
|
75
|
-
title: 'Percent',
|
|
76
|
-
selected: ((_f = this.value) === null || _f === void 0 ? void 0 : _f.type) === 'number' &&
|
|
77
|
-
((_g = this.value.options) === null || _g === void 0 ? void 0 : _g.style) === 'percent',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: 'unit',
|
|
81
|
-
title: 'Unit',
|
|
82
|
-
selected: ((_h = this.value) === null || _h === void 0 ? void 0 : _h.type) === 'number' &&
|
|
83
|
-
((_j = this.value.options) === null || _j === void 0 ? void 0 : _j.style) === 'unit',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
id: 'date',
|
|
87
|
-
title: 'Date',
|
|
88
|
-
selected: ((_k = this.value) === null || _k === void 0 ? void 0 : _k.type) === 'date',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
id: 'relative-date',
|
|
92
|
-
title: 'Relative date',
|
|
93
|
-
selected: ((_l = this.value) === null || _l === void 0 ? void 0 : _l.type) === 'relative-date',
|
|
94
|
-
},
|
|
95
|
-
];
|
|
96
|
-
return [
|
|
97
|
-
h("limel-button-group", { key: 'cac8e4793eb19e3f4d959a7a53115954b190eddf', value: buttons.filter(this.isValidButton), onChange: this.handleChangeType }),
|
|
98
|
-
this.renderFormatConfig(),
|
|
99
|
-
];
|
|
100
|
-
}
|
|
101
|
-
renderFormatConfig() {
|
|
102
|
-
var _a, _b;
|
|
103
|
-
if (!((_a = this.value) === null || _a === void 0 ? void 0 : _a.type)) {
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
let type = this.value.type;
|
|
107
|
-
if (this.isNumberFormat(this.value)) {
|
|
108
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
109
|
-
type = (_b = this.value.options) === null || _b === void 0 ? void 0 : _b.style;
|
|
110
|
-
}
|
|
111
|
-
const ComponentName = `limebb-info-tile-${type}-format`;
|
|
112
|
-
if (!customElements.get(ComponentName)) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
return (h(ComponentName, { platform: this.platform, context: this.context, class: "format", value: this.value }));
|
|
116
|
-
}
|
|
117
|
-
isNumberFormat(format) {
|
|
118
|
-
return (format === null || format === void 0 ? void 0 : format.type) === 'number';
|
|
119
|
-
}
|
|
120
|
-
static get style() { return LimebbInfoTileFormatStyle0; }
|
|
121
|
-
}, [1, "limebb-info-tile-format", {
|
|
122
|
-
"platform": [16],
|
|
123
|
-
"context": [16],
|
|
124
|
-
"type": [1],
|
|
125
|
-
"value": [16]
|
|
126
|
-
}]);
|
|
127
|
-
function defineCustomElement$1() {
|
|
128
|
-
if (typeof customElements === "undefined") {
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
const components = ["limebb-info-tile-format"];
|
|
132
|
-
components.forEach(tagName => { switch (tagName) {
|
|
133
|
-
case "limebb-info-tile-format":
|
|
134
|
-
if (!customElements.get(tagName)) {
|
|
135
|
-
customElements.define(tagName, InfoTileAdminConfig);
|
|
136
|
-
}
|
|
137
|
-
break;
|
|
138
|
-
} });
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
const LimebbInfoTileFormat = InfoTileAdminConfig;
|
|
142
|
-
const defineCustomElement = defineCustomElement$1;
|
|
143
|
-
|
|
144
|
-
export { LimebbInfoTileFormat, defineCustomElement };
|
|
1
|
+
import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as l,transformTag as n}from"@stencil/core/internal/client";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.change=i(this,"change",7),this.handleChangeType=t=>{t.stopPropagation();const e=t.detail.id;"none"===e?this.change.emit():this.change.emit("date"===e||"relative-date"===e?{type:e}:"percent"===e?{type:"number",options:{style:"percent"},suffix:["percentSign"]}:{type:"number",options:{style:e}})},this.isValidButton=t=>!this.type||"none"===t.id||"none"!==this.type&&("date"===this.type?t.id.includes("date"):!t.id.includes("date"))}render(){var t,e,i,n,o,s,r,d,u,a,m;const c=[{id:"none",title:"No formatting",selected:!(null===(t=this.value)||void 0===t?void 0:t.type)},{id:"currency",title:"Currency",selected:"number"===(null===(e=this.value)||void 0===e?void 0:e.type)&&"currency"===(null===(i=this.value.options)||void 0===i?void 0:i.style)},{id:"decimal",title:"Decimal",selected:"number"===(null===(n=this.value)||void 0===n?void 0:n.type)&&"decimal"===(null===(o=this.value.options)||void 0===o?void 0:o.style)},{id:"percent",title:"Percent",selected:"number"===(null===(s=this.value)||void 0===s?void 0:s.type)&&"percent"===(null===(r=this.value.options)||void 0===r?void 0:r.style)},{id:"unit",title:"Unit",selected:"number"===(null===(d=this.value)||void 0===d?void 0:d.type)&&"unit"===(null===(u=this.value.options)||void 0===u?void 0:u.style)},{id:"date",title:"Date",selected:"date"===(null===(a=this.value)||void 0===a?void 0:a.type)},{id:"relative-date",title:"Relative date",selected:"relative-date"===(null===(m=this.value)||void 0===m?void 0:m.type)}];return[l("limel-button-group",{key:"2070d2125e867619f5184501dc5001477bdf56fc",value:c.filter(this.isValidButton),onChange:this.handleChangeType}),this.renderFormatConfig()]}renderFormatConfig(){var t,e;if(!(null===(t=this.value)||void 0===t?void 0:t.type))return;let i=this.value.type;this.isNumberFormat(this.value)&&(i=null===(e=this.value.options)||void 0===e?void 0:e.style);const n=`limebb-info-tile-${i}-format`;return customElements.get(n)?l(n,{platform:this.platform,context:this.context,class:"format",value:this.value}):void 0}isNumberFormat(t){return"number"===(null==t?void 0:t.type)}static get style(){return":host(limebb-info-tile-format){display:grid;gap:1rem}limel-button-group{grid-column:1/-1}.format{display:grid;gap:0.5rem;grid-template-columns:repeat(auto-fit, minmax(8rem, 1fr))}"}},[1,"limebb-info-tile-format",{platform:[16],context:[16],type:[1],value:[16]}]),s=o,r=function(){"undefined"!=typeof customElements&&["limebb-info-tile-format"].forEach((t=>{"limebb-info-tile-format"===t&&(customElements.get(n(t))||customElements.define(n(t),o))}))};export{s as LimebbInfoTileFormat,r as defineCustomElement}
|