@limetech/lime-crm-building-blocks 1.116.0 → 1.116.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/{_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 +15 -20
- package/dist/cjs/limebb-chat-list.cjs.entry.js +11 -12
- 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 +3 -2
- package/dist/collection/components/alert-dialog/alert-dialog.css +133 -1
- 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 +9 -11
- package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.js +3 -2
- package/dist/collection/components/chat-list/chat-item/chat-item.css +9 -0
- package/dist/collection/components/chat-list/chat-item/chat-item.js +11 -8
- package/dist/collection/components/chat-list/chat-list.css +9 -0
- package/dist/collection/components/chat-list/chat-list.js +15 -12
- 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.css +9 -0
- 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.css +9 -0
- 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.css +41 -11
- 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.css +9 -0
- 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.css +25 -9
- package/dist/collection/components/kanban/kanban-group/kanban-group.js +19 -16
- package/dist/collection/components/kanban/kanban-item/kanban-item.css +9 -0
- 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.css +9 -0
- 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.css +9 -0
- 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.css +9 -0
- 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.css +17 -1
- 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.css +24 -1
- package/dist/collection/components/navigation-button/navigation-button.js +10 -9
- package/dist/collection/components/notification-list/notification-item/notification-item.css +9 -0
- package/dist/collection/components/notification-list/notification-item/notification-item.js +9 -5
- package/dist/collection/components/notification-list/notification-list.css +9 -0
- 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.css +9 -0
- 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.css +9 -0
- 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 -55
- 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.js +1 -6
- package/dist/components/limebb-chat-item.js +1 -6
- package/dist/components/limebb-chat-list.js +1 -302
- 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 +15 -18
- package/dist/esm/limebb-chat-list.entry.js +11 -10
- 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-1a61674f.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-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-43e22f6d.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-4625a9c5.entry.js +1 -0
- 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-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-685dd8a1.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-5277ceca.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-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-6fb504cb.entry.js → p-b3ee6683.entry.js} +1 -1
- 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-be8dc8ae.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-0707d5b0.entry.js → p-c3b13800.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-b3ad9f5e.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-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-0190354e.entry.js → p-fa41a9e6.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-fcedbc77.entry.js +1 -0
- 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.d.ts +608 -114
- 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/esm/index.esm-11a8b9e2.js +0 -963
- package/dist/lime-crm-building-blocks/p-121877f3.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-123190c3.js +0 -1
- package/dist/lime-crm-building-blocks/p-1317cdfa.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-199799ff.js +0 -1
- package/dist/lime-crm-building-blocks/p-1a89328d.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-1b361f60.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-2612f2f6.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-2babfa69.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-2d5e5ab5.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-331fced5.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-35897ec3.js +0 -1
- package/dist/lime-crm-building-blocks/p-3a16d7cf.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-3da67f32.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-3dd32e10.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-4894ca5d.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-4eb7a47c.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-50abea43.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-520df198.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-548e0f2a.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-7365ec1c.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-7e6fb4af.js +0 -1
- package/dist/lime-crm-building-blocks/p-81583fc8.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-85709273.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-87d3f42c.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-8dca4e46.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-9c25aa2b.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-a959dd49.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-b2763851.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-d9045aaa.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-d994067b.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-da42650a.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-dae67f66.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-dce9c951.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-dd5af257.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-ea4daa32.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-eb56d4eb.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,83 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { d as defineCustomElement$2 } from './date-picker.js';
|
|
3
|
-
|
|
4
|
-
const dateRangeCss = ":host(limebb-date-range){isolation:isolate;display:block;position:relative}*{box-sizing:border-box}.date-pickers{display:grid;grid-template-columns:repeat(auto-fit, minmax(13.5rem, 1fr));gap:0.5rem;padding:0.75rem 1rem 1.25rem 1rem}.label-group{display:flex;align-items:center;margin-bottom:0.25rem}.end-time .label-group{flex-direction:row-reverse}.label-group .label{font-size:0.75rem;padding:0 0.25rem}.label-group .circle{flex-shrink:0;width:0.5rem;height:0.5rem;border-radius:50%}.start-time .label-group .circle{background-color:rgb(var(--color-green-default))}.end-time .label-group .circle{background-color:rgb(var(--color-coral-default))}.label-group .line{flex-grow:1;height:0.25rem;border-radius:1rem}.start-time .label-group .line{background-image:linear-gradient(to right, rgb(var(--color-green-light)), rgb(var(--contrast-400)) 30%)}.end-time .label-group .line{background-image:linear-gradient(to left, rgb(var(--color-coral-light)), rgb(var(--contrast-400)) 30%)}.date-pickers:has(>:last-child:nth-child(2)) .start-time .line{margin-right:-0.5rem}.date-pickers:has(>:last-child:nth-child(2)) .end-time .line{margin-left:-0.5rem}";
|
|
5
|
-
const LimebbDateRangeStyle0 = dateRangeCss;
|
|
6
|
-
|
|
7
|
-
const DateRange = /*@__PURE__*/ proxyCustomElement(class DateRange extends HTMLElement {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.__registerHost();
|
|
11
|
-
this.__attachShadow();
|
|
12
|
-
this.changeStartTime = createEvent(this, "changeStartTime", 7);
|
|
13
|
-
this.changeEndTime = createEvent(this, "changeEndTime", 7);
|
|
14
|
-
this.handleStartTimeChange = (event) => {
|
|
15
|
-
event.stopPropagation();
|
|
16
|
-
this.changeStartTime.emit(event.detail);
|
|
17
|
-
};
|
|
18
|
-
this.handleEndTimeChange = (event) => {
|
|
19
|
-
event.stopPropagation();
|
|
20
|
-
this.changeEndTime.emit(event.detail);
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
componentWillLoad() {
|
|
24
|
-
this.originalStartTime = this.startTime;
|
|
25
|
-
this.originalEndTime = this.endTime;
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
return (h("div", { key: '8424fac6160776909ab0c809fdf01d5c32dd447f', class: "date-pickers" }, this.renderStartDatePicker(), this.renderEndDatePicker()));
|
|
29
|
-
}
|
|
30
|
-
renderStartDatePicker() {
|
|
31
|
-
if (!this.originalStartTime) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
return (h("div", { class: "start-time" }, this.renderDatePicker(this.startTimeLabel, this.startTime, !this.startTime, this.handleStartTimeChange)));
|
|
35
|
-
}
|
|
36
|
-
renderEndDatePicker() {
|
|
37
|
-
if (!this.originalEndTime) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
return (h("div", { class: "end-time" }, this.renderDatePicker(this.endTimeLabel, this.endTime, !this.endTime, this.handleEndTimeChange)));
|
|
41
|
-
}
|
|
42
|
-
renderDatePicker(label, value, isInvalid, onChangeHandler) {
|
|
43
|
-
const datePicker = this.platform && (h("limebb-date-picker", { platform: this.platform, context: this.context, type: this.type, value: value, onChange: onChangeHandler, invalid: isInvalid }));
|
|
44
|
-
return [
|
|
45
|
-
h("div", { class: "label-group" }, h("span", { class: "circle" }), h("span", { class: "label" }, label), h("span", { class: "line" })),
|
|
46
|
-
datePicker || (h("limel-date-picker", { type: this.type, value: value, format: this.timeFormat, language: this.language, onChange: onChangeHandler, invalid: isInvalid })),
|
|
47
|
-
];
|
|
48
|
-
}
|
|
49
|
-
static get style() { return LimebbDateRangeStyle0; }
|
|
50
|
-
}, [1, "limebb-date-range", {
|
|
51
|
-
"platform": [16],
|
|
52
|
-
"context": [16],
|
|
53
|
-
"startTime": [16],
|
|
54
|
-
"endTime": [16],
|
|
55
|
-
"startTimeLabel": [1, "start-time-label"],
|
|
56
|
-
"endTimeLabel": [1, "end-time-label"],
|
|
57
|
-
"language": [1],
|
|
58
|
-
"timeFormat": [1, "time-format"],
|
|
59
|
-
"type": [1]
|
|
60
|
-
}]);
|
|
61
|
-
function defineCustomElement$1() {
|
|
62
|
-
if (typeof customElements === "undefined") {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const components = ["limebb-date-range", "limebb-date-picker"];
|
|
66
|
-
components.forEach(tagName => { switch (tagName) {
|
|
67
|
-
case "limebb-date-range":
|
|
68
|
-
if (!customElements.get(tagName)) {
|
|
69
|
-
customElements.define(tagName, DateRange);
|
|
70
|
-
}
|
|
71
|
-
break;
|
|
72
|
-
case "limebb-date-picker":
|
|
73
|
-
if (!customElements.get(tagName)) {
|
|
74
|
-
defineCustomElement$2();
|
|
75
|
-
}
|
|
76
|
-
break;
|
|
77
|
-
} });
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
const LimebbDateRange = DateRange;
|
|
81
|
-
const defineCustomElement = defineCustomElement$1;
|
|
82
|
-
|
|
83
|
-
export { LimebbDateRange, defineCustomElement };
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as t,createEvent as i,h as r,transformTag as a}from"@stencil/core/internal/client";import{d as l}from"./date-picker.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.changeStartTime=i(this,"changeStartTime",7),this.changeEndTime=i(this,"changeEndTime",7),this.handleStartTimeChange=e=>{e.stopPropagation(),this.changeStartTime.emit(e.detail)},this.handleEndTimeChange=e=>{e.stopPropagation(),this.changeEndTime.emit(e.detail)}}componentWillLoad(){this.originalStartTime=this.startTime,this.originalEndTime=this.endTime}render(){return r("div",{key:"0eab8abe9007384af9e7fcd56f8ac37c4aeb6b39",class:"date-pickers"},this.renderStartDatePicker(),this.renderEndDatePicker())}renderStartDatePicker(){if(this.originalStartTime)return r("div",{class:"start-time"},this.renderDatePicker(this.startTimeLabel,this.startTime,!this.startTime,this.handleStartTimeChange))}renderEndDatePicker(){if(this.originalEndTime)return r("div",{class:"end-time"},this.renderDatePicker(this.endTimeLabel,this.endTime,!this.endTime,this.handleEndTimeChange))}renderDatePicker(e,t,i,a){const l=this.platform&&r("limebb-date-picker",{platform:this.platform,context:this.context,type:this.type,value:t,onChange:a,invalid:i});return[r("div",{class:"label-group"},r("span",{class:"circle"}),r("span",{class:"label"},e),r("span",{class:"line"})),l||r("limel-date-picker",{type:this.type,value:t,format:this.timeFormat,language:this.language,onChange:a,invalid:i})]}static get style(){return":host(limebb-date-range){isolation:isolate;display:block;position:relative}*{box-sizing:border-box}.date-pickers{display:grid;grid-template-columns:repeat(auto-fit, minmax(13.5rem, 1fr));gap:0.5rem;padding:0.75rem 1rem 1.25rem 1rem}.label-group{display:flex;align-items:center;margin-bottom:0.25rem}.end-time .label-group{flex-direction:row-reverse}.label-group .label{font-size:0.75rem;padding:0 0.25rem}.label-group .circle{flex-shrink:0;width:0.5rem;height:0.5rem;border-radius:50%}.start-time .label-group .circle{background-color:rgb(var(--color-green-default))}.end-time .label-group .circle{background-color:rgb(var(--color-coral-default))}.label-group .line{flex-grow:1;height:0.25rem;border-radius:1rem}.start-time .label-group .line{background-image:linear-gradient(to right, rgb(var(--color-green-light)), rgb(var(--contrast-400)) 30%)}.end-time .label-group .line{background-image:linear-gradient(to left, rgb(var(--color-coral-light)), rgb(var(--contrast-400)) 30%)}.date-pickers:has(>:last-child:nth-child(2)) .start-time .line{margin-right:-0.5rem}.date-pickers:has(>:last-child:nth-child(2)) .end-time .line{margin-left:-0.5rem}"}},[1,"limebb-date-range",{platform:[16],context:[16],startTime:[16],endTime:[16],startTimeLabel:[1,"start-time-label"],endTimeLabel:[1,"end-time-label"],language:[1],timeFormat:[1,"time-format"],type:[1]}]),n=s,o=function(){"undefined"!=typeof customElements&&["limebb-date-range","limebb-date-picker"].forEach((e=>{switch(e){case"limebb-date-range":customElements.get(a(e))||customElements.define(a(e),s);break;case"limebb-date-picker":customElements.get(a(e))||l()}}))};export{n as LimebbDateRange,o as defineCustomElement}
|
|
@@ -1,437 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { g as getPreviewType } from './extension-mapping.js';
|
|
3
|
-
import { g as getFileExtension, d as defineCustomElement$2 } from './summary-popover.js';
|
|
4
|
-
import { d as defineCustomElement$3 } from './navigation-button.js';
|
|
5
|
-
|
|
6
|
-
// Copy of file icon names from lime-elements.
|
|
7
|
-
// Source: lime-elements/src/components/file/icons.ts
|
|
8
|
-
//
|
|
9
|
-
// Stencil doesn't support exporting utility functions from a component
|
|
10
|
-
// library, so we duplicate them here until a proper shared solution exists.
|
|
11
|
-
const DEFAULT_ICON = 'file';
|
|
12
|
-
const CALENDAR_ICON = 'tear_off_calendar';
|
|
13
|
-
const EMAIL_ICON = 'email';
|
|
14
|
-
const HTML_ICON = 'internet';
|
|
15
|
-
const TEXT_ICON = 'text_box';
|
|
16
|
-
const EXCEL_ICON = 'ms_excel_copyrighted';
|
|
17
|
-
const WORD_ICON = 'ms_word_copyrighted';
|
|
18
|
-
const POWERPOINT_ICON = 'ms_powerpoint_copyrighted';
|
|
19
|
-
const IMAGE_ICON = 'picture';
|
|
20
|
-
const PHOTO_ICON = 'camera';
|
|
21
|
-
const VECTOR_GRAPHIC_ICON = 'vector';
|
|
22
|
-
const PRESENTATION_ICON = 'presentation_filled';
|
|
23
|
-
const DOCUMENT_ICON = 'overview_pages_2';
|
|
24
|
-
const SPREADSHEET_ICON = 'data_sheet';
|
|
25
|
-
const AUDIO_ICON = 'audio_wave';
|
|
26
|
-
const VIDEO_ICON = 'video_file';
|
|
27
|
-
const COMPRESSED_ICON = 'condom_package';
|
|
28
|
-
const MESSAGE_ICON = 'ms_outlook_copyrighted';
|
|
29
|
-
const DATA_ICON = 'database';
|
|
30
|
-
const DEFAULT_FILE_ICON = DEFAULT_ICON;
|
|
31
|
-
const filetypeIconTable = {
|
|
32
|
-
msg: MESSAGE_ICON,
|
|
33
|
-
ics: CALENDAR_ICON,
|
|
34
|
-
ical: CALENDAR_ICON,
|
|
35
|
-
icalendar: CALENDAR_ICON,
|
|
36
|
-
ifb: CALENDAR_ICON,
|
|
37
|
-
email: EMAIL_ICON,
|
|
38
|
-
eml: EMAIL_ICON,
|
|
39
|
-
oft: EMAIL_ICON,
|
|
40
|
-
ost: EMAIL_ICON,
|
|
41
|
-
emlx: EMAIL_ICON,
|
|
42
|
-
html: HTML_ICON,
|
|
43
|
-
xml: HTML_ICON,
|
|
44
|
-
txt: TEXT_ICON,
|
|
45
|
-
rtf: TEXT_ICON,
|
|
46
|
-
dot: WORD_ICON,
|
|
47
|
-
doc: WORD_ICON,
|
|
48
|
-
docx: WORD_ICON,
|
|
49
|
-
dotx: WORD_ICON,
|
|
50
|
-
docm: WORD_ICON,
|
|
51
|
-
dotm: WORD_ICON,
|
|
52
|
-
odt: DOCUMENT_ICON,
|
|
53
|
-
pages: DOCUMENT_ICON,
|
|
54
|
-
pdf: 'PDF_2',
|
|
55
|
-
ppt: POWERPOINT_ICON,
|
|
56
|
-
pot: POWERPOINT_ICON,
|
|
57
|
-
pps: POWERPOINT_ICON,
|
|
58
|
-
pptx: POWERPOINT_ICON,
|
|
59
|
-
pptm: POWERPOINT_ICON,
|
|
60
|
-
potx: POWERPOINT_ICON,
|
|
61
|
-
potm: POWERPOINT_ICON,
|
|
62
|
-
ppam: POWERPOINT_ICON,
|
|
63
|
-
ppsx: POWERPOINT_ICON,
|
|
64
|
-
ppsm: POWERPOINT_ICON,
|
|
65
|
-
sldx: POWERPOINT_ICON,
|
|
66
|
-
sldm: POWERPOINT_ICON,
|
|
67
|
-
odp: PRESENTATION_ICON,
|
|
68
|
-
key: PRESENTATION_ICON,
|
|
69
|
-
xls: EXCEL_ICON,
|
|
70
|
-
xlsx: EXCEL_ICON,
|
|
71
|
-
csv: SPREADSHEET_ICON,
|
|
72
|
-
numbers: SPREADSHEET_ICON,
|
|
73
|
-
jpg: PHOTO_ICON,
|
|
74
|
-
jpeg: PHOTO_ICON,
|
|
75
|
-
heic: PHOTO_ICON,
|
|
76
|
-
bmp: IMAGE_ICON,
|
|
77
|
-
png: IMAGE_ICON,
|
|
78
|
-
gif: IMAGE_ICON,
|
|
79
|
-
psd: 'adobe_photoshop_copyrighted',
|
|
80
|
-
ai: 'adobe_illustrator_copyrighted',
|
|
81
|
-
svg: VECTOR_GRAPHIC_ICON,
|
|
82
|
-
svgz: VECTOR_GRAPHIC_ICON,
|
|
83
|
-
ep: VECTOR_GRAPHIC_ICON,
|
|
84
|
-
eps: VECTOR_GRAPHIC_ICON,
|
|
85
|
-
sketch: VECTOR_GRAPHIC_ICON,
|
|
86
|
-
mp3: AUDIO_ICON,
|
|
87
|
-
wav: AUDIO_ICON,
|
|
88
|
-
wma: AUDIO_ICON,
|
|
89
|
-
ogg: AUDIO_ICON,
|
|
90
|
-
avi: VIDEO_ICON,
|
|
91
|
-
flv: VIDEO_ICON,
|
|
92
|
-
h264: VIDEO_ICON,
|
|
93
|
-
mov: VIDEO_ICON,
|
|
94
|
-
mp4: VIDEO_ICON,
|
|
95
|
-
mwv: VIDEO_ICON,
|
|
96
|
-
zip: COMPRESSED_ICON,
|
|
97
|
-
'7z': COMPRESSED_ICON,
|
|
98
|
-
rar: COMPRESSED_ICON,
|
|
99
|
-
json: 'json',
|
|
100
|
-
yaml: DATA_ICON,
|
|
101
|
-
sql: DATA_ICON,
|
|
102
|
-
db: DATA_ICON,
|
|
103
|
-
dbf: DATA_ICON,
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
// Copy of file icon fill colors from lime-elements.
|
|
107
|
-
// Source: lime-elements/src/components/file/icon-fill-colors.ts
|
|
108
|
-
//
|
|
109
|
-
// Stencil doesn't support exporting utility functions from a component
|
|
110
|
-
// library, so we duplicate them here until a proper shared solution exists.
|
|
111
|
-
const DEFAULT_ICON_FILL_COLOR = 'rgb(var(--color-gray-dark))';
|
|
112
|
-
const CALENDAR_ICON_FILL_COLOR = 'rgb(var(--color-cyan-dark))';
|
|
113
|
-
const EMAIL_ICON_FILL_COLOR = 'rgb(var(--color-gray-dark))';
|
|
114
|
-
const HTML_ICON_FILL_COLOR = 'rgb(var(--color-blue-dark))';
|
|
115
|
-
const TEXT_ICON_FILL_COLOR = 'rgb(var(--color-yellow-darker))';
|
|
116
|
-
const EXCEL_ICON_FILL_COLOR = 'rgb(var(--color-green-dark))';
|
|
117
|
-
const POWERPOINT_ICON_FILL_COLOR = 'rgb(var(--color-coral-dark))';
|
|
118
|
-
const WORD_ICON_FILL_COLOR = 'rgb(var(--color-sky-dark))';
|
|
119
|
-
const IMAGE_ICON_FILL_COLOR = 'rgb(var(--color-lime-dark))';
|
|
120
|
-
const VECTOR_GRAPHIC_FILL_COLOR = 'rgb(var(--color-magenta-dark))';
|
|
121
|
-
const PRESENTATION_ICON_FILL_COLOR = 'rgb(var(--color-blue-dark))';
|
|
122
|
-
const DOCUMENT_ICON_FILL_COLOR = 'rgb(var(--color-orange-dark))';
|
|
123
|
-
const SPREADSHEET_ICON_FILL_COLOR = 'rgb(var(--color-green-dark))';
|
|
124
|
-
const AUDIO_ICON_FILL_COLOR = 'rgb(var(--color-indigo-dark))';
|
|
125
|
-
const VIDEO_ICON_FILL_COLOR = 'rgb(var(--color-red-dark))';
|
|
126
|
-
const COMPRESSED_ICON_FILL_COLOR = 'rgb(var(--color-brown-default))';
|
|
127
|
-
const MESSAGE_ICON_FILL_COLOR = 'rgb(var(--color-yellow-dark))';
|
|
128
|
-
const PDF_ICON_FILL_COLOR = 'rgb(var(--color-red-dark))';
|
|
129
|
-
const DATA_ICON_FILL_COLOR = 'rgb(var(--color-glaucous-dark))';
|
|
130
|
-
const DEFAULT_ICON_FILL = DEFAULT_ICON_FILL_COLOR;
|
|
131
|
-
const filetypeFillColorTable = {
|
|
132
|
-
msg: MESSAGE_ICON_FILL_COLOR,
|
|
133
|
-
ics: CALENDAR_ICON_FILL_COLOR,
|
|
134
|
-
ical: CALENDAR_ICON_FILL_COLOR,
|
|
135
|
-
icalendar: CALENDAR_ICON_FILL_COLOR,
|
|
136
|
-
ifb: CALENDAR_ICON_FILL_COLOR,
|
|
137
|
-
email: EMAIL_ICON_FILL_COLOR,
|
|
138
|
-
eml: EMAIL_ICON_FILL_COLOR,
|
|
139
|
-
oft: EMAIL_ICON_FILL_COLOR,
|
|
140
|
-
ost: EMAIL_ICON_FILL_COLOR,
|
|
141
|
-
emlx: EMAIL_ICON_FILL_COLOR,
|
|
142
|
-
html: HTML_ICON_FILL_COLOR,
|
|
143
|
-
xml: HTML_ICON_FILL_COLOR,
|
|
144
|
-
txt: TEXT_ICON_FILL_COLOR,
|
|
145
|
-
rtf: TEXT_ICON_FILL_COLOR,
|
|
146
|
-
dot: WORD_ICON_FILL_COLOR,
|
|
147
|
-
doc: WORD_ICON_FILL_COLOR,
|
|
148
|
-
docx: WORD_ICON_FILL_COLOR,
|
|
149
|
-
dotx: WORD_ICON_FILL_COLOR,
|
|
150
|
-
docm: WORD_ICON_FILL_COLOR,
|
|
151
|
-
dotm: WORD_ICON_FILL_COLOR,
|
|
152
|
-
odt: DOCUMENT_ICON_FILL_COLOR,
|
|
153
|
-
pages: DOCUMENT_ICON_FILL_COLOR,
|
|
154
|
-
pdf: PDF_ICON_FILL_COLOR,
|
|
155
|
-
ppt: POWERPOINT_ICON_FILL_COLOR,
|
|
156
|
-
pot: POWERPOINT_ICON_FILL_COLOR,
|
|
157
|
-
pps: POWERPOINT_ICON_FILL_COLOR,
|
|
158
|
-
pptx: POWERPOINT_ICON_FILL_COLOR,
|
|
159
|
-
pptm: POWERPOINT_ICON_FILL_COLOR,
|
|
160
|
-
potx: POWERPOINT_ICON_FILL_COLOR,
|
|
161
|
-
potm: POWERPOINT_ICON_FILL_COLOR,
|
|
162
|
-
ppam: POWERPOINT_ICON_FILL_COLOR,
|
|
163
|
-
ppsx: POWERPOINT_ICON_FILL_COLOR,
|
|
164
|
-
ppsm: POWERPOINT_ICON_FILL_COLOR,
|
|
165
|
-
sldx: POWERPOINT_ICON_FILL_COLOR,
|
|
166
|
-
sldm: POWERPOINT_ICON_FILL_COLOR,
|
|
167
|
-
odp: PRESENTATION_ICON_FILL_COLOR,
|
|
168
|
-
key: PRESENTATION_ICON_FILL_COLOR,
|
|
169
|
-
xls: EXCEL_ICON_FILL_COLOR,
|
|
170
|
-
xlsx: EXCEL_ICON_FILL_COLOR,
|
|
171
|
-
csv: DEFAULT_ICON_FILL_COLOR,
|
|
172
|
-
numbers: SPREADSHEET_ICON_FILL_COLOR,
|
|
173
|
-
bmp: IMAGE_ICON_FILL_COLOR,
|
|
174
|
-
jpg: IMAGE_ICON_FILL_COLOR,
|
|
175
|
-
jpeg: IMAGE_ICON_FILL_COLOR,
|
|
176
|
-
heic: IMAGE_ICON_FILL_COLOR,
|
|
177
|
-
png: IMAGE_ICON_FILL_COLOR,
|
|
178
|
-
gif: IMAGE_ICON_FILL_COLOR,
|
|
179
|
-
psd: PRESENTATION_ICON_FILL_COLOR,
|
|
180
|
-
ai: DOCUMENT_ICON_FILL_COLOR,
|
|
181
|
-
svg: VECTOR_GRAPHIC_FILL_COLOR,
|
|
182
|
-
svgz: VECTOR_GRAPHIC_FILL_COLOR,
|
|
183
|
-
ep: VECTOR_GRAPHIC_FILL_COLOR,
|
|
184
|
-
eps: VECTOR_GRAPHIC_FILL_COLOR,
|
|
185
|
-
sketch: VECTOR_GRAPHIC_FILL_COLOR,
|
|
186
|
-
mp3: AUDIO_ICON_FILL_COLOR,
|
|
187
|
-
wav: AUDIO_ICON_FILL_COLOR,
|
|
188
|
-
wma: AUDIO_ICON_FILL_COLOR,
|
|
189
|
-
ogg: AUDIO_ICON_FILL_COLOR,
|
|
190
|
-
flv: VIDEO_ICON_FILL_COLOR,
|
|
191
|
-
h264: VIDEO_ICON_FILL_COLOR,
|
|
192
|
-
mov: VIDEO_ICON_FILL_COLOR,
|
|
193
|
-
mp4: VIDEO_ICON_FILL_COLOR,
|
|
194
|
-
mwv: VIDEO_ICON_FILL_COLOR,
|
|
195
|
-
zip: COMPRESSED_ICON_FILL_COLOR,
|
|
196
|
-
'7z': COMPRESSED_ICON_FILL_COLOR,
|
|
197
|
-
rar: COMPRESSED_ICON_FILL_COLOR,
|
|
198
|
-
json: DATA_ICON_FILL_COLOR,
|
|
199
|
-
yaml: DATA_ICON_FILL_COLOR,
|
|
200
|
-
sql: DATA_ICON_FILL_COLOR,
|
|
201
|
-
db: DATA_ICON_FILL_COLOR,
|
|
202
|
-
dbf: DATA_ICON_FILL_COLOR,
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
// Copy of file icon background colors from lime-elements.
|
|
206
|
-
// Source: lime-elements/src/components/file/icon-background-colors.ts
|
|
207
|
-
//
|
|
208
|
-
// Stencil doesn't support exporting utility functions from a component
|
|
209
|
-
// library, so we duplicate them here until a proper shared solution exists.
|
|
210
|
-
const DEFAULT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-gray-lighter), 0.4)';
|
|
211
|
-
const CALENDAR_ICON_BACKGROUND_COLOR = 'rgba(var(--color-cyan-lighter), 0.4)';
|
|
212
|
-
const EMAIL_ICON_BACKGROUND_COLOR = 'rgba(var(--color-gray-lighter), 0.4)';
|
|
213
|
-
const HTML_ICON_BACKGROUND_COLOR = 'rgba(var(--color-blue-lighter), 0.4)';
|
|
214
|
-
const TEXT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-yellow-lighter), 0.4)';
|
|
215
|
-
const EXCEL_ICON_BACKGROUND_COLOR = 'rgba(var(--color-green-lighter), 0.4)';
|
|
216
|
-
const POWERPOINT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-coral-lighter), 0.4)';
|
|
217
|
-
const WORD_ICON_BACKGROUND_COLOR = 'rgba(var(--color-sky-lighter), 0.4)';
|
|
218
|
-
const IMAGE_ICON_BACKGROUND_COLOR = 'rgba(var(--color-lime-lighter), 0.4)';
|
|
219
|
-
const VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR = 'rgba(var(--color-magenta-lighter), 0.4)';
|
|
220
|
-
const PRESENTATION_BACKGROUND_COLOR = 'rgba(var(--color-blue-lighter), 0.4)';
|
|
221
|
-
const DOCUMENT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-orange-lighter), 0.4)';
|
|
222
|
-
const SPREADSHEET_ICON_BACKGROUND_COLOR = 'rgba(var(--color-green-lighter), 0.4)';
|
|
223
|
-
const AUDIO_ICON_BACKGROUND_COLOR = 'rgba(var(--color-indigo-lighter), 0.4)';
|
|
224
|
-
const VIDEO_ICON_BACKGROUND_COLOR = 'rgba(var(--color-red-lighter), 0.4)';
|
|
225
|
-
const COMPRESSED_ICON_BACKGROUND_COLOR = 'rgba(var(--color-orange-lighter), 0.4)';
|
|
226
|
-
const MESSAGE_ICON_BACKGROUND_COLOR = 'rgba(var(--color-yellow-lighter), 0.4)';
|
|
227
|
-
const PDF_ICON_BACKGROUND_COLOR = 'rgba(var(--color-red-lighter), 0.4)';
|
|
228
|
-
const DATA_ICON_BACKGROUND_COLOR = 'rgba(var(--color-glaucous-lighter), 0.4)';
|
|
229
|
-
const DEFAULT_ICON_BACKGROUND = DEFAULT_ICON_BACKGROUND_COLOR;
|
|
230
|
-
const filetypeBackgroundColorTable = {
|
|
231
|
-
msg: MESSAGE_ICON_BACKGROUND_COLOR,
|
|
232
|
-
ics: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
233
|
-
ical: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
234
|
-
icalendar: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
235
|
-
ifb: CALENDAR_ICON_BACKGROUND_COLOR,
|
|
236
|
-
email: EMAIL_ICON_BACKGROUND_COLOR,
|
|
237
|
-
eml: EMAIL_ICON_BACKGROUND_COLOR,
|
|
238
|
-
oft: EMAIL_ICON_BACKGROUND_COLOR,
|
|
239
|
-
ost: EMAIL_ICON_BACKGROUND_COLOR,
|
|
240
|
-
emlx: EMAIL_ICON_BACKGROUND_COLOR,
|
|
241
|
-
html: HTML_ICON_BACKGROUND_COLOR,
|
|
242
|
-
xml: HTML_ICON_BACKGROUND_COLOR,
|
|
243
|
-
txt: TEXT_ICON_BACKGROUND_COLOR,
|
|
244
|
-
rtf: TEXT_ICON_BACKGROUND_COLOR,
|
|
245
|
-
dot: WORD_ICON_BACKGROUND_COLOR,
|
|
246
|
-
doc: WORD_ICON_BACKGROUND_COLOR,
|
|
247
|
-
docx: WORD_ICON_BACKGROUND_COLOR,
|
|
248
|
-
dotx: WORD_ICON_BACKGROUND_COLOR,
|
|
249
|
-
docm: WORD_ICON_BACKGROUND_COLOR,
|
|
250
|
-
dotm: WORD_ICON_BACKGROUND_COLOR,
|
|
251
|
-
odt: DOCUMENT_ICON_BACKGROUND_COLOR,
|
|
252
|
-
pages: DOCUMENT_ICON_BACKGROUND_COLOR,
|
|
253
|
-
pdf: PDF_ICON_BACKGROUND_COLOR,
|
|
254
|
-
ppt: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
255
|
-
pot: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
256
|
-
pps: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
257
|
-
pptx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
258
|
-
pptm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
259
|
-
potx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
260
|
-
potm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
261
|
-
ppam: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
262
|
-
ppsx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
263
|
-
ppsm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
264
|
-
sldx: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
265
|
-
sldm: POWERPOINT_ICON_BACKGROUND_COLOR,
|
|
266
|
-
odp: PRESENTATION_BACKGROUND_COLOR,
|
|
267
|
-
key: PRESENTATION_BACKGROUND_COLOR,
|
|
268
|
-
xls: EXCEL_ICON_BACKGROUND_COLOR,
|
|
269
|
-
xlsx: EXCEL_ICON_BACKGROUND_COLOR,
|
|
270
|
-
csv: DEFAULT_ICON_BACKGROUND_COLOR,
|
|
271
|
-
numbers: SPREADSHEET_ICON_BACKGROUND_COLOR,
|
|
272
|
-
bmp: IMAGE_ICON_BACKGROUND_COLOR,
|
|
273
|
-
jpg: IMAGE_ICON_BACKGROUND_COLOR,
|
|
274
|
-
jpeg: IMAGE_ICON_BACKGROUND_COLOR,
|
|
275
|
-
heic: IMAGE_ICON_BACKGROUND_COLOR,
|
|
276
|
-
png: IMAGE_ICON_BACKGROUND_COLOR,
|
|
277
|
-
gif: IMAGE_ICON_BACKGROUND_COLOR,
|
|
278
|
-
psd: PRESENTATION_BACKGROUND_COLOR,
|
|
279
|
-
ai: DOCUMENT_ICON_BACKGROUND_COLOR,
|
|
280
|
-
svg: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
281
|
-
svgz: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
282
|
-
ep: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
283
|
-
eps: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
284
|
-
sketch: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
|
|
285
|
-
mp3: AUDIO_ICON_BACKGROUND_COLOR,
|
|
286
|
-
wav: AUDIO_ICON_BACKGROUND_COLOR,
|
|
287
|
-
wma: AUDIO_ICON_BACKGROUND_COLOR,
|
|
288
|
-
ogg: AUDIO_ICON_BACKGROUND_COLOR,
|
|
289
|
-
flv: VIDEO_ICON_BACKGROUND_COLOR,
|
|
290
|
-
h264: VIDEO_ICON_BACKGROUND_COLOR,
|
|
291
|
-
mov: VIDEO_ICON_BACKGROUND_COLOR,
|
|
292
|
-
mp4: VIDEO_ICON_BACKGROUND_COLOR,
|
|
293
|
-
mwv: VIDEO_ICON_BACKGROUND_COLOR,
|
|
294
|
-
zip: COMPRESSED_ICON_BACKGROUND_COLOR,
|
|
295
|
-
'7z': COMPRESSED_ICON_BACKGROUND_COLOR,
|
|
296
|
-
rar: COMPRESSED_ICON_BACKGROUND_COLOR,
|
|
297
|
-
json: DATA_ICON_BACKGROUND_COLOR,
|
|
298
|
-
yaml: DATA_ICON_BACKGROUND_COLOR,
|
|
299
|
-
sql: DATA_ICON_BACKGROUND_COLOR,
|
|
300
|
-
db: DATA_ICON_BACKGROUND_COLOR,
|
|
301
|
-
dbf: DATA_ICON_BACKGROUND_COLOR,
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Returns an icon with name, fill color, and background color
|
|
306
|
-
* based on the file extension of the given filename.
|
|
307
|
-
*
|
|
308
|
-
* @param filename - the filename to get the icon for
|
|
309
|
-
*/
|
|
310
|
-
function getFileIcon(filename) {
|
|
311
|
-
const extension = getFileExtension(filename);
|
|
312
|
-
return {
|
|
313
|
-
name: filetypeIconTable[extension] || DEFAULT_FILE_ICON,
|
|
314
|
-
color: filetypeFillColorTable[extension] || DEFAULT_ICON_FILL,
|
|
315
|
-
backgroundColor: filetypeBackgroundColorTable[extension] || DEFAULT_ICON_BACKGROUND,
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
const documentChipsCss = ":host(limebb-document-chips){box-sizing:border-box;display:flex;flex-wrap:wrap;gap:0.25rem;width:100%}*{box-sizing:border-box;min-width:0}limebb-summary-popover{max-width:100%}limel-chip{max-width:18rem}";
|
|
320
|
-
const LimebbDocumentChipsStyle0 = documentChipsCss;
|
|
321
|
-
|
|
322
|
-
const DocumentChips = /*@__PURE__*/ proxyCustomElement(class DocumentChips extends HTMLElement {
|
|
323
|
-
constructor() {
|
|
324
|
-
super();
|
|
325
|
-
this.__registerHost();
|
|
326
|
-
this.__attachShadow();
|
|
327
|
-
this.removeFile = createEvent(this, "removeFile", 7);
|
|
328
|
-
/**
|
|
329
|
-
* The list of files to display as document chips.
|
|
330
|
-
*/
|
|
331
|
-
this.files = [];
|
|
332
|
-
this.blobUrls = new Map();
|
|
333
|
-
this.handleRemove = (event) => {
|
|
334
|
-
event.stopPropagation();
|
|
335
|
-
const fileId = event.detail;
|
|
336
|
-
this.revokeBlobUrl(fileId);
|
|
337
|
-
this.removeFile.emit(fileId);
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
onFilesChanged(newFiles, oldFiles) {
|
|
341
|
-
const currentIds = new Set(newFiles.map((file) => file.id));
|
|
342
|
-
for (const file of oldFiles) {
|
|
343
|
-
if (!currentIds.has(file.id)) {
|
|
344
|
-
this.revokeBlobUrl(file.id);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
disconnectedCallback() {
|
|
349
|
-
this.revokeAllBlobUrls();
|
|
350
|
-
}
|
|
351
|
-
render() {
|
|
352
|
-
return (h(Host, { key: 'a8434c51cd27c94924e392983cb0983b1fbc7f62', role: "list", "aria-label": this.accessibleLabel }, this.files.map((file) => this.renderFile(file))));
|
|
353
|
-
}
|
|
354
|
-
renderFile(file) {
|
|
355
|
-
const isReady = !file.uploadState || file.uploadState === 'done';
|
|
356
|
-
const icon = this.getIcon(file);
|
|
357
|
-
const chip = (h("limel-chip", { role: isReady ? undefined : 'listitem', slot: isReady ? 'trigger' : undefined, removable: true, identifier: file.id, text: file.filename, icon: icon, invalid: file.uploadState === 'failed', progress: file.uploadState === 'uploading'
|
|
358
|
-
? file.uploadProgress
|
|
359
|
-
: undefined, loading: file.uploadState === 'added' ||
|
|
360
|
-
file.uploadState === 'finalizing', onRemove: this.handleRemove }));
|
|
361
|
-
if (!isReady) {
|
|
362
|
-
return chip;
|
|
363
|
-
}
|
|
364
|
-
return (h("limebb-summary-popover", { role: "listitem", file: Object.assign(Object.assign({}, file), { href: this.getPreviewUrl(file) }), popoverMaxWidth: "32rem", popoverMaxHeight: "32rem", triggerDelay: 1000 }, chip));
|
|
365
|
-
}
|
|
366
|
-
getIcon(file) {
|
|
367
|
-
if (file.icon) {
|
|
368
|
-
return file.icon;
|
|
369
|
-
}
|
|
370
|
-
return getFileIcon(file.filename);
|
|
371
|
-
}
|
|
372
|
-
getPreviewUrl(file) {
|
|
373
|
-
const extension = getFileExtension(file.filename);
|
|
374
|
-
const previewType = getPreviewType(extension);
|
|
375
|
-
if (previewType === 'sharepoint') {
|
|
376
|
-
return undefined;
|
|
377
|
-
}
|
|
378
|
-
if (file.href) {
|
|
379
|
-
return file.href;
|
|
380
|
-
}
|
|
381
|
-
if (file.fileContent) {
|
|
382
|
-
if (!this.blobUrls.has(file.id)) {
|
|
383
|
-
this.blobUrls.set(file.id, URL.createObjectURL(file.fileContent));
|
|
384
|
-
}
|
|
385
|
-
return this.blobUrls.get(file.id);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
revokeBlobUrl(fileId) {
|
|
389
|
-
const url = this.blobUrls.get(fileId);
|
|
390
|
-
if (url) {
|
|
391
|
-
URL.revokeObjectURL(url);
|
|
392
|
-
this.blobUrls.delete(fileId);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
revokeAllBlobUrls() {
|
|
396
|
-
for (const url of this.blobUrls.values())
|
|
397
|
-
URL.revokeObjectURL(url);
|
|
398
|
-
this.blobUrls.clear();
|
|
399
|
-
}
|
|
400
|
-
static get watchers() { return {
|
|
401
|
-
"files": ["onFilesChanged"]
|
|
402
|
-
}; }
|
|
403
|
-
static get style() { return LimebbDocumentChipsStyle0; }
|
|
404
|
-
}, [1, "limebb-document-chips", {
|
|
405
|
-
"accessibleLabel": [513, "accessible-label"],
|
|
406
|
-
"files": [16]
|
|
407
|
-
}, undefined, {
|
|
408
|
-
"files": ["onFilesChanged"]
|
|
409
|
-
}]);
|
|
410
|
-
function defineCustomElement$1() {
|
|
411
|
-
if (typeof customElements === "undefined") {
|
|
412
|
-
return;
|
|
413
|
-
}
|
|
414
|
-
const components = ["limebb-document-chips", "limebb-navigation-button", "limebb-summary-popover"];
|
|
415
|
-
components.forEach(tagName => { switch (tagName) {
|
|
416
|
-
case "limebb-document-chips":
|
|
417
|
-
if (!customElements.get(tagName)) {
|
|
418
|
-
customElements.define(tagName, DocumentChips);
|
|
419
|
-
}
|
|
420
|
-
break;
|
|
421
|
-
case "limebb-navigation-button":
|
|
422
|
-
if (!customElements.get(tagName)) {
|
|
423
|
-
defineCustomElement$3();
|
|
424
|
-
}
|
|
425
|
-
break;
|
|
426
|
-
case "limebb-summary-popover":
|
|
427
|
-
if (!customElements.get(tagName)) {
|
|
428
|
-
defineCustomElement$2();
|
|
429
|
-
}
|
|
430
|
-
break;
|
|
431
|
-
} });
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
const LimebbDocumentChips = DocumentChips;
|
|
435
|
-
const defineCustomElement = defineCustomElement$1;
|
|
436
|
-
|
|
437
|
-
export { LimebbDocumentChips, defineCustomElement };
|
|
1
|
+
import{proxyCustomElement as r,HTMLElement as o,createEvent as e,h as t,Host as a,transformTag as l}from"@stencil/core/internal/client";import{g as i}from"./extension-mapping.js";import{g as s,d as p}from"./summary-popover.js";import{d as c}from"./navigation-button.js";const g="tear_off_calendar",m="email",d="internet",n="text_box",b="ms_excel_copyrighted",v="ms_word_copyrighted",h="ms_powerpoint_copyrighted",x="picture",f="camera",u="vector",k="presentation_filled",y="overview_pages_2",w="data_sheet",_="audio_wave",j="video_file",z="condom_package",F="database",U={msg:"ms_outlook_copyrighted",ics:g,ical:g,icalendar:g,ifb:g,email:m,eml:m,oft:m,ost:m,emlx:m,html:d,xml:d,txt:n,rtf:n,dot:v,doc:v,docx:v,dotx:v,docm:v,dotm:v,odt:y,pages:y,pdf:"PDF_2",ppt:h,pot:h,pps:h,pptx:h,pptm:h,potx:h,potm:h,ppam:h,ppsx:h,ppsm:h,sldx:h,sldm:h,odp:k,key:k,xls:b,xlsx:b,csv:w,numbers:w,jpg:f,jpeg:f,heic:f,bmp:x,png:x,gif:x,psd:"adobe_photoshop_copyrighted",ai:"adobe_illustrator_copyrighted",svg:u,svgz:u,ep:u,eps:u,sketch:u,mp3:_,wav:_,wma:_,ogg:_,avi:j,flv:j,h264:j,mov:j,mp4:j,mwv:j,zip:z,"7z":z,rar:z,json:"json",yaml:F,sql:F,db:F,dbf:F},C="rgb(var(--color-gray-dark))",E="rgb(var(--color-cyan-dark))",L="rgb(var(--color-gray-dark))",R="rgb(var(--color-blue-dark))",q="rgb(var(--color-yellow-darker))",M="rgb(var(--color-green-dark))",B="rgb(var(--color-coral-dark))",D="rgb(var(--color-sky-dark))",O="rgb(var(--color-lime-dark))",P="rgb(var(--color-magenta-dark))",A="rgb(var(--color-blue-dark))",H="rgb(var(--color-orange-dark))",I="rgb(var(--color-indigo-dark))",S="rgb(var(--color-red-dark))",W="rgb(var(--color-brown-default))",G="rgb(var(--color-glaucous-dark))",J=C,K={msg:"rgb(var(--color-yellow-dark))",ics:E,ical:E,icalendar:E,ifb:E,email:L,eml:L,oft:L,ost:L,emlx:L,html:R,xml:R,txt:q,rtf:q,dot:D,doc:D,docx:D,dotx:D,docm:D,dotm:D,odt:H,pages:H,pdf:"rgb(var(--color-red-dark))",ppt:B,pot:B,pps:B,pptx:B,pptm:B,potx:B,potm:B,ppam:B,ppsx:B,ppsm:B,sldx:B,sldm:B,odp:A,key:A,xls:M,xlsx:M,csv:C,numbers:"rgb(var(--color-green-dark))",bmp:O,jpg:O,jpeg:O,heic:O,png:O,gif:O,psd:A,ai:H,svg:P,svgz:P,ep:P,eps:P,sketch:P,mp3:I,wav:I,wma:I,ogg:I,flv:S,h264:S,mov:S,mp4:S,mwv:S,zip:W,"7z":W,rar:W,json:G,yaml:G,sql:G,db:G,dbf:G},N="rgba(var(--color-gray-lighter), 0.4)",Q="rgba(var(--color-cyan-lighter), 0.4)",T="rgba(var(--color-gray-lighter), 0.4)",V="rgba(var(--color-blue-lighter), 0.4)",X="rgba(var(--color-yellow-lighter), 0.4)",Y="rgba(var(--color-green-lighter), 0.4)",Z="rgba(var(--color-coral-lighter), 0.4)",$="rgba(var(--color-sky-lighter), 0.4)",rr="rgba(var(--color-lime-lighter), 0.4)",or="rgba(var(--color-magenta-lighter), 0.4)",er="rgba(var(--color-blue-lighter), 0.4)",tr="rgba(var(--color-orange-lighter), 0.4)",ar="rgba(var(--color-indigo-lighter), 0.4)",lr="rgba(var(--color-red-lighter), 0.4)",ir="rgba(var(--color-orange-lighter), 0.4)",sr="rgba(var(--color-glaucous-lighter), 0.4)",pr=N,cr={msg:"rgba(var(--color-yellow-lighter), 0.4)",ics:Q,ical:Q,icalendar:Q,ifb:Q,email:T,eml:T,oft:T,ost:T,emlx:T,html:V,xml:V,txt:X,rtf:X,dot:$,doc:$,docx:$,dotx:$,docm:$,dotm:$,odt:tr,pages:tr,pdf:"rgba(var(--color-red-lighter), 0.4)",ppt:Z,pot:Z,pps:Z,pptx:Z,pptm:Z,potx:Z,potm:Z,ppam:Z,ppsx:Z,ppsm:Z,sldx:Z,sldm:Z,odp:er,key:er,xls:Y,xlsx:Y,csv:N,numbers:"rgba(var(--color-green-lighter), 0.4)",bmp:rr,jpg:rr,jpeg:rr,heic:rr,png:rr,gif:rr,psd:er,ai:tr,svg:or,svgz:or,ep:or,eps:or,sketch:or,mp3:ar,wav:ar,wma:ar,ogg:ar,flv:lr,h264:lr,mov:lr,mp4:lr,mwv:lr,zip:ir,"7z":ir,rar:ir,json:sr,yaml:sr,sql:sr,db:sr,dbf:sr},gr=r(class extends o{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.removeFile=e(this,"removeFile",7),this.files=[],this.blobUrls=new Map,this.handleRemove=r=>{r.stopPropagation();const o=r.detail;this.revokeBlobUrl(o),this.removeFile.emit(o)}}onFilesChanged(r,o){const e=new Set(r.map((r=>r.id)));for(const r of o)e.has(r.id)||this.revokeBlobUrl(r.id)}disconnectedCallback(){this.revokeAllBlobUrls()}render(){return t(a,{key:"d5bdfcc1c2895820c4613bf907799063e1118899",role:"list","aria-label":this.accessibleLabel},this.files.map((r=>this.renderFile(r))))}renderFile(r){const o=!r.uploadState||"done"===r.uploadState,e=this.getIcon(r),a=t("limel-chip",{role:o?void 0:"listitem",slot:o?"trigger":void 0,removable:!0,identifier:r.id,text:r.filename,icon:e,invalid:"failed"===r.uploadState,progress:"uploading"===r.uploadState?r.uploadProgress:void 0,loading:"added"===r.uploadState||"finalizing"===r.uploadState,onRemove:this.handleRemove});return o?t("limebb-summary-popover",{role:"listitem",file:Object.assign(Object.assign({},r),{href:this.getPreviewUrl(r)}),popoverMaxWidth:"32rem",popoverMaxHeight:"32rem",triggerDelay:1e3},a):a}getIcon(r){return r.icon?r.icon:function(r){const o=s(r);return{name:U[o]||"file",color:K[o]||J,backgroundColor:cr[o]||pr}}(r.filename)}getPreviewUrl(r){const o=s(r.filename);if("sharepoint"!==i(o))return r.href?r.href:r.fileContent?(this.blobUrls.has(r.id)||this.blobUrls.set(r.id,URL.createObjectURL(r.fileContent)),this.blobUrls.get(r.id)):void 0}revokeBlobUrl(r){const o=this.blobUrls.get(r);o&&(URL.revokeObjectURL(o),this.blobUrls.delete(r))}revokeAllBlobUrls(){for(const r of this.blobUrls.values())URL.revokeObjectURL(r);this.blobUrls.clear()}static get watchers(){return{files:[{onFilesChanged:0}]}}static get style(){return":host(limebb-document-chips){box-sizing:border-box;display:flex;flex-wrap:wrap;gap:0.25rem;width:100%}*{box-sizing:border-box;min-width:0}limebb-summary-popover{max-width:100%}limel-chip{max-width:18rem}"}},[1,"limebb-document-chips",{accessibleLabel:[513,"accessible-label"],files:[16]},void 0,{files:[{onFilesChanged:0}]}]),mr=gr,dr=function(){"undefined"!=typeof customElements&&["limebb-document-chips","limebb-navigation-button","limebb-summary-popover"].forEach((r=>{switch(r){case"limebb-document-chips":customElements.get(l(r))||customElements.define(l(r),gr);break;case"limebb-navigation-button":customElements.get(l(r))||c();break;case"limebb-summary-popover":customElements.get(l(r))||p()}}))};export{mr as LimebbDocumentChips,dr as defineCustomElement}
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const LimebbDocumentItem = DocumentItemComponent;
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
5
|
-
|
|
6
|
-
export { LimebbDocumentItem, defineCustomElement };
|
|
1
|
+
import{D as o,d as t}from"./document-item.js";const m=o,s=t;export{m as LimebbDocumentItem,s as defineCustomElement}
|
|
@@ -1,111 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { c as createRandomString } from './random-string.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './document-item.js';
|
|
4
|
-
|
|
5
|
-
const documentPickerCss = "@charset \"UTF-8\";:host(limebb-document-picker){--checkbox-label-overflow-wrap:break-word;--switch-label-overflow-wrap:break-word}:host(limebb-document-picker:not([invalid]):not([invalid=true])) .limel-notched-outline{--limel-notched-outline-border-color:transparent;--limel-notched-outline-background-color:transparent}.limel-notched-outline{padding:0.75rem 0.5rem}limel-masonry-layout{--masonry-layout-min-column-width:10rem;--masonry-layout-gap:0.5rem}:host(limebb-document-picker:focus),:host(limebb-document-picker:focus-visible),:host(limebb-document-picker:focus-within){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limebb-document-picker){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}:host(limebb-document-picker:focus) limel-helper-line,:host(limebb-document-picker:focus-visible) limel-helper-line,:host(limebb-document-picker:focus-within) limel-helper-line,:host(limebb-document-picker:hover) limel-helper-line{will-change:grid-template-rows}";
|
|
6
|
-
const LimebbDocumentPickerStyle0 = documentPickerCss;
|
|
7
|
-
|
|
8
|
-
const DocumentPicker = /*@__PURE__*/ proxyCustomElement(class DocumentPicker extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
this.change = createEvent(this, "change", 7);
|
|
14
|
-
/**
|
|
15
|
-
* The list of document items to display in the picker.
|
|
16
|
-
*/
|
|
17
|
-
this.items = [];
|
|
18
|
-
/**
|
|
19
|
-
* Set to `true` to indicate that the current selection is invalid.
|
|
20
|
-
*/
|
|
21
|
-
this.invalid = false;
|
|
22
|
-
/**
|
|
23
|
-
* Set to `true` to indicate that selecting an item is required.
|
|
24
|
-
*/
|
|
25
|
-
this.required = false;
|
|
26
|
-
/**
|
|
27
|
-
* Defines whether the picker allows single or multiple selection.
|
|
28
|
-
* - 'radio': Allows single selection within a group.
|
|
29
|
-
* - 'checkbox': Allows multiple selection.
|
|
30
|
-
*/
|
|
31
|
-
this.type = 'checkbox';
|
|
32
|
-
this.handleItemInteract = (event) => {
|
|
33
|
-
event.stopPropagation();
|
|
34
|
-
const interactedItem = event.detail;
|
|
35
|
-
if (!interactedItem) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
let updatedItems;
|
|
39
|
-
if (this.type === 'radio') {
|
|
40
|
-
// For radio buttons: either select the clicked item (and deselect others)
|
|
41
|
-
// or allow deselecting if clicking the already selected item
|
|
42
|
-
updatedItems = this.items
|
|
43
|
-
.map((item) => {
|
|
44
|
-
if (item.file.id === interactedItem.file.id) {
|
|
45
|
-
return Object.assign(Object.assign({}, item), { selected: interactedItem.selected });
|
|
46
|
-
}
|
|
47
|
-
return Object.assign(Object.assign({}, item), { selected: false });
|
|
48
|
-
})
|
|
49
|
-
.find((item) => item.selected);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
updatedItems = this.items
|
|
53
|
-
.map((item) => {
|
|
54
|
-
if (item.file.id === interactedItem.file.id) {
|
|
55
|
-
return Object.assign(Object.assign({}, item), { selected: interactedItem.selected });
|
|
56
|
-
}
|
|
57
|
-
return item;
|
|
58
|
-
})
|
|
59
|
-
.filter((item) => item.selected);
|
|
60
|
-
}
|
|
61
|
-
this.change.emit(updatedItems);
|
|
62
|
-
};
|
|
63
|
-
this.renderHelperLine = () => {
|
|
64
|
-
if (!this.helperText) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
return (h("limel-helper-line", { helperText: this.helperText, helperTextId: this.helperTextId, invalid: this.invalid }));
|
|
68
|
-
};
|
|
69
|
-
this.helperTextId = createRandomString();
|
|
70
|
-
this.labelId = createRandomString();
|
|
71
|
-
}
|
|
72
|
-
render() {
|
|
73
|
-
return (h(Host, { key: 'b28a99c85792d47c500bb2b91aa2011bd7298f48' }, h("limel-notched-outline", { key: 'c855f472a73f0f2d35a0f5452ea2fcd5d370e834', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid, hasFloatingLabel: true }, h("limel-masonry-layout", { key: 'e333e8e2244e2e56abb178ea2359bcae5c8d699a', slot: "content", role: this.type === 'radio' ? 'radiogroup' : 'group', "aria-labelledby": this.label ? this.labelId : undefined, "aria-describedby": this.helperText ? this.helperTextId : undefined }, this.renderItems())), this.renderHelperLine()));
|
|
74
|
-
}
|
|
75
|
-
renderItems() {
|
|
76
|
-
return this.items.map((item) => (h("limebb-document-item", { platform: this.platform, context: this.context, item: item, key: item.file.id, type: this.type, onInteract: this.handleItemInteract })));
|
|
77
|
-
}
|
|
78
|
-
static get style() { return LimebbDocumentPickerStyle0; }
|
|
79
|
-
}, [1, "limebb-document-picker", {
|
|
80
|
-
"platform": [16],
|
|
81
|
-
"context": [16],
|
|
82
|
-
"items": [16],
|
|
83
|
-
"label": [513],
|
|
84
|
-
"helperText": [513, "helper-text"],
|
|
85
|
-
"invalid": [516],
|
|
86
|
-
"required": [516],
|
|
87
|
-
"type": [513]
|
|
88
|
-
}]);
|
|
89
|
-
function defineCustomElement$1() {
|
|
90
|
-
if (typeof customElements === "undefined") {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
const components = ["limebb-document-picker", "limebb-document-item"];
|
|
94
|
-
components.forEach(tagName => { switch (tagName) {
|
|
95
|
-
case "limebb-document-picker":
|
|
96
|
-
if (!customElements.get(tagName)) {
|
|
97
|
-
customElements.define(tagName, DocumentPicker);
|
|
98
|
-
}
|
|
99
|
-
break;
|
|
100
|
-
case "limebb-document-item":
|
|
101
|
-
if (!customElements.get(tagName)) {
|
|
102
|
-
defineCustomElement$2();
|
|
103
|
-
}
|
|
104
|
-
break;
|
|
105
|
-
} });
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const LimebbDocumentPicker = DocumentPicker;
|
|
109
|
-
const defineCustomElement = defineCustomElement$1;
|
|
110
|
-
|
|
111
|
-
export { LimebbDocumentPicker, defineCustomElement };
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as t,createEvent as i,h as l,Host as o,transformTag as r}from"@stencil/core/internal/client";import{c as s}from"./random-string.js";import{d as n}from"./document-item.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.change=i(this,"change",7),this.items=[],this.invalid=!1,this.required=!1,this.type="checkbox",this.handleItemInteract=e=>{e.stopPropagation();const t=e.detail;if(!t)return;let i;i="radio"===this.type?this.items.map((e=>Object.assign(Object.assign({},e),e.file.id===t.file.id?{selected:t.selected}:{selected:!1}))).find((e=>e.selected)):this.items.map((e=>e.file.id===t.file.id?Object.assign(Object.assign({},e),{selected:t.selected}):e)).filter((e=>e.selected)),this.change.emit(i)},this.renderHelperLine=()=>{if(this.helperText)return l("limel-helper-line",{helperText:this.helperText,helperTextId:this.helperTextId,invalid:this.invalid})},this.helperTextId=s(),this.labelId=s()}render(){return l(o,{key:"ff9e59b375c66d9b5c6818e4b81776d4dbfd63a8"},l("limel-notched-outline",{key:"8414b5e0363c10b90c0dc5fda549d0268c177a8d",labelId:this.labelId,label:this.label,required:this.required,invalid:this.invalid,hasFloatingLabel:!0},l("limel-masonry-layout",{key:"06037f5780b8755b628309e26fa908167df49347",slot:"content",role:"radio"===this.type?"radiogroup":"group","aria-labelledby":this.label?this.labelId:void 0,"aria-describedby":this.helperText?this.helperTextId:void 0},this.renderItems())),this.renderHelperLine())}renderItems(){return this.items.map((e=>l("limebb-document-item",{platform:this.platform,context:this.context,item:e,key:e.file.id,type:this.type,onInteract:this.handleItemInteract})))}static get style(){return'@charset "UTF-8";:host(limebb-document-picker){--checkbox-label-overflow-wrap:break-word;--switch-label-overflow-wrap:break-word}:host(limebb-document-picker:not([invalid]):not([invalid=true])) .limel-notched-outline{--limel-notched-outline-border-color:transparent;--limel-notched-outline-background-color:transparent}.limel-notched-outline{padding:0.75rem 0.5rem}limel-masonry-layout{--masonry-layout-min-column-width:10rem;--masonry-layout-gap:0.5rem}:host(limebb-document-picker:focus),:host(limebb-document-picker:focus-visible),:host(limebb-document-picker:focus-within){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limebb-document-picker){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}:host(limebb-document-picker:focus) limel-helper-line,:host(limebb-document-picker:focus-visible) limel-helper-line,:host(limebb-document-picker:focus-within) limel-helper-line,:host(limebb-document-picker:hover) limel-helper-line{will-change:grid-template-rows}'}},[1,"limebb-document-picker",{platform:[16],context:[16],items:[16],label:[513],helperText:[513,"helper-text"],invalid:[516],required:[516],type:[513]}]),m=c,h=function(){"undefined"!=typeof customElements&&["limebb-document-picker","limebb-document-item"].forEach((e=>{switch(e){case"limebb-document-picker":customElements.get(r(e))||customElements.define(r(e),c);break;case"limebb-document-item":customElements.get(r(e))||n()}}))};export{m as LimebbDocumentPicker,h as defineCustomElement}
|