@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,35 +1,52 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function _interopNamespace(e) {
|
|
4
|
-
if (e && e.__esModule) return e;
|
|
5
|
-
var n = Object.create(null);
|
|
6
|
-
if (e) {
|
|
7
|
-
Object.keys(e).forEach(function (k) {
|
|
8
|
-
if (k !== 'default') {
|
|
9
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
10
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return e[k];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
n['default'] = e;
|
|
20
|
-
return Object.freeze(n);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
3
|
const NAMESPACE = 'lime-crm-building-blocks';
|
|
24
|
-
const BUILD = /* lime-crm-building-blocks */ {
|
|
4
|
+
const BUILD = /* lime-crm-building-blocks */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
|
|
25
5
|
|
|
26
6
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
7
|
+
Stencil Client Platform v4.43.4 | MIT Licensed | https://stenciljs.com
|
|
28
8
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
// src/utils/get-prop-descriptor.ts
|
|
12
|
+
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
13
|
+
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
14
|
+
while (obj && obj !== stopAt) {
|
|
15
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
16
|
+
if (desc && (!getOnly || desc.get)) return desc;
|
|
17
|
+
obj = Object.getPrototypeOf(obj);
|
|
18
|
+
}
|
|
19
|
+
return void 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
23
|
+
var reWireGetterSetter = (instance, hostRef) => {
|
|
24
|
+
var _a;
|
|
25
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
26
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
27
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
28
|
+
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
29
|
+
const ogValue = instance[memberName];
|
|
30
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
31
|
+
if (ogDescriptor) {
|
|
32
|
+
Object.defineProperty(instance, memberName, {
|
|
33
|
+
get() {
|
|
34
|
+
return ogDescriptor.get.call(this);
|
|
35
|
+
},
|
|
36
|
+
set(newValue) {
|
|
37
|
+
ogDescriptor.set.call(this, newValue);
|
|
38
|
+
},
|
|
39
|
+
configurable: true,
|
|
40
|
+
enumerable: true
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
if (hostRef.$instanceValues$.has(memberName)) {
|
|
44
|
+
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
45
|
+
} else if (ogValue !== void 0) {
|
|
46
|
+
instance[memberName] = ogValue;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
33
50
|
};
|
|
34
51
|
|
|
35
52
|
// src/client/client-host-ref.ts
|
|
@@ -40,21 +57,29 @@ var getHostRef = (ref) => {
|
|
|
40
57
|
return void 0;
|
|
41
58
|
};
|
|
42
59
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
60
|
+
if (!hostRef) return;
|
|
43
61
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
44
62
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
63
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
|
|
64
|
+
reWireGetterSetter(lazyInstance, hostRef);
|
|
65
|
+
}
|
|
45
66
|
};
|
|
46
67
|
var registerHost = (hostElement, cmpMeta) => {
|
|
47
68
|
const hostRef = {
|
|
48
69
|
$flags$: 0,
|
|
49
70
|
$hostElement$: hostElement,
|
|
50
71
|
$cmpMeta$: cmpMeta,
|
|
51
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
72
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
73
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
52
74
|
};
|
|
53
75
|
{
|
|
54
76
|
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
55
77
|
hostElement["s-p"] = [];
|
|
56
78
|
hostElement["s-rc"] = [];
|
|
57
79
|
}
|
|
80
|
+
{
|
|
81
|
+
hostRef.$fetchedCbList$ = [];
|
|
82
|
+
}
|
|
58
83
|
const ref = hostRef;
|
|
59
84
|
hostElement.__stencil__getHostRef = () => ref;
|
|
60
85
|
return ref;
|
|
@@ -77,13 +102,13 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
77
102
|
return module[exportName];
|
|
78
103
|
}
|
|
79
104
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
80
|
-
return
|
|
105
|
+
return import(
|
|
81
106
|
/* @vite-ignore */
|
|
82
107
|
/* webpackInclude: /\.entry\.js$/ */
|
|
83
108
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
109
|
/* webpackMode: "lazy" */
|
|
85
110
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)
|
|
111
|
+
).then(
|
|
87
112
|
(importedModule) => {
|
|
88
113
|
{
|
|
89
114
|
cmpModules.set(bundleId, importedModule);
|
|
@@ -98,7 +123,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
98
123
|
|
|
99
124
|
// src/client/client-style.ts
|
|
100
125
|
var styles = /* @__PURE__ */ new Map();
|
|
101
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
102
126
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
103
127
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
104
128
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
@@ -115,12 +139,16 @@ var plt = {
|
|
|
115
139
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
116
140
|
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
117
141
|
try {
|
|
142
|
+
if (!win.document.adoptedStyleSheets) {
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
118
145
|
new CSSStyleSheet();
|
|
119
146
|
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
120
147
|
} catch (e) {
|
|
121
148
|
}
|
|
122
149
|
return false;
|
|
123
150
|
})() ;
|
|
151
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
124
152
|
var queuePending = false;
|
|
125
153
|
var queueDomReads = [];
|
|
126
154
|
var queueDomWrites = [];
|
|
@@ -156,65 +184,30 @@ var flush = () => {
|
|
|
156
184
|
};
|
|
157
185
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
158
186
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
159
|
-
var isComplexType = (o) => {
|
|
160
|
-
o = typeof o;
|
|
161
|
-
return o === "object" || o === "function";
|
|
162
|
-
};
|
|
163
187
|
|
|
164
|
-
// src/utils/
|
|
165
|
-
function
|
|
166
|
-
|
|
167
|
-
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
188
|
+
// src/utils/style.ts
|
|
189
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
190
|
+
return void 0;
|
|
168
191
|
}
|
|
169
192
|
|
|
170
|
-
// src/utils/
|
|
171
|
-
var
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
});
|
|
184
|
-
var err = (value) => ({
|
|
185
|
-
isOk: false,
|
|
186
|
-
isErr: true,
|
|
187
|
-
value
|
|
188
|
-
});
|
|
189
|
-
function map(result, fn) {
|
|
190
|
-
if (result.isOk) {
|
|
191
|
-
const val = fn(result.value);
|
|
192
|
-
if (val instanceof Promise) {
|
|
193
|
-
return val.then((newVal) => ok(newVal));
|
|
193
|
+
// src/utils/shadow-root.ts
|
|
194
|
+
var globalStyleSheet;
|
|
195
|
+
function createShadowRoot(cmpMeta) {
|
|
196
|
+
var _a;
|
|
197
|
+
const opts = { mode: "open" };
|
|
198
|
+
{
|
|
199
|
+
opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
|
|
200
|
+
}
|
|
201
|
+
const shadowRoot = this.attachShadow(opts);
|
|
202
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
203
|
+
if (globalStyleSheet) {
|
|
204
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
205
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
194
206
|
} else {
|
|
195
|
-
|
|
207
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
196
208
|
}
|
|
197
209
|
}
|
|
198
|
-
if (result.isErr) {
|
|
199
|
-
const value = result.value;
|
|
200
|
-
return err(value);
|
|
201
|
-
}
|
|
202
|
-
throw "should never get here";
|
|
203
210
|
}
|
|
204
|
-
var unwrap = (result) => {
|
|
205
|
-
if (result.isOk) {
|
|
206
|
-
return result.value;
|
|
207
|
-
} else {
|
|
208
|
-
throw result.value;
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
var unwrapErr = (result) => {
|
|
212
|
-
if (result.isErr) {
|
|
213
|
-
return result.value;
|
|
214
|
-
} else {
|
|
215
|
-
throw result.value;
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
211
|
var createTime = (fnName, tagName = "") => {
|
|
219
212
|
{
|
|
220
213
|
return () => {
|
|
@@ -229,7 +222,144 @@ var uniqueTime = (key, measureText) => {
|
|
|
229
222
|
};
|
|
230
223
|
}
|
|
231
224
|
};
|
|
225
|
+
|
|
226
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
227
|
+
function queryNonceMetaTagContent(doc) {
|
|
228
|
+
var _a, _b, _c;
|
|
229
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// src/runtime/styles.ts
|
|
233
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
234
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
235
|
+
let style = styles.get(scopeId2);
|
|
236
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
237
|
+
style = style || new CSSStyleSheet();
|
|
238
|
+
if (typeof style === "string") {
|
|
239
|
+
style = cssText;
|
|
240
|
+
} else {
|
|
241
|
+
style.replaceSync(cssText);
|
|
242
|
+
}
|
|
243
|
+
} else {
|
|
244
|
+
style = cssText;
|
|
245
|
+
}
|
|
246
|
+
styles.set(scopeId2, style);
|
|
247
|
+
};
|
|
248
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
249
|
+
var _a, _b, _c;
|
|
250
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
251
|
+
const style = styles.get(scopeId2);
|
|
252
|
+
if (!win.document) {
|
|
253
|
+
return scopeId2;
|
|
254
|
+
}
|
|
255
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
256
|
+
if (style) {
|
|
257
|
+
if (typeof style === "string") {
|
|
258
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
259
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
260
|
+
let styleElm;
|
|
261
|
+
if (!appliedStyles) {
|
|
262
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
263
|
+
}
|
|
264
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
265
|
+
styleElm = win.document.createElement("style");
|
|
266
|
+
styleElm.textContent = style;
|
|
267
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
268
|
+
if (nonce != null) {
|
|
269
|
+
styleElm.setAttribute("nonce", nonce);
|
|
270
|
+
}
|
|
271
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
272
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
273
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
274
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
275
|
+
styleContainerNode.insertBefore(
|
|
276
|
+
styleElm,
|
|
277
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
278
|
+
);
|
|
279
|
+
} else if ("host" in styleContainerNode) {
|
|
280
|
+
if (supportsConstructableStylesheets) {
|
|
281
|
+
const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
|
|
282
|
+
const stylesheet = new currentWindow.CSSStyleSheet();
|
|
283
|
+
stylesheet.replaceSync(style);
|
|
284
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
285
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
286
|
+
} else {
|
|
287
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
288
|
+
}
|
|
289
|
+
} else {
|
|
290
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
291
|
+
if (existingStyleContainer && true) {
|
|
292
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
293
|
+
} else {
|
|
294
|
+
styleContainerNode.prepend(styleElm);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
} else {
|
|
298
|
+
styleContainerNode.append(styleElm);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
302
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
303
|
+
}
|
|
304
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
305
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
306
|
+
}
|
|
307
|
+
if (appliedStyles) {
|
|
308
|
+
appliedStyles.add(scopeId2);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
} else {
|
|
312
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
313
|
+
if (!appliedStyles) {
|
|
314
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
315
|
+
}
|
|
316
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
317
|
+
const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
|
|
318
|
+
let stylesheet;
|
|
319
|
+
if (style.constructor === currentWindow.CSSStyleSheet) {
|
|
320
|
+
stylesheet = style;
|
|
321
|
+
} else {
|
|
322
|
+
stylesheet = new currentWindow.CSSStyleSheet();
|
|
323
|
+
for (let i2 = 0; i2 < style.cssRules.length; i2++) {
|
|
324
|
+
stylesheet.insertRule(style.cssRules[i2].cssText, i2);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
328
|
+
styleContainerNode.adoptedStyleSheets.push(stylesheet);
|
|
329
|
+
} else {
|
|
330
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
331
|
+
}
|
|
332
|
+
appliedStyles.add(scopeId2);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
return scopeId2;
|
|
337
|
+
};
|
|
338
|
+
var attachStyles = (hostRef) => {
|
|
339
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
340
|
+
const elm = hostRef.$hostElement$;
|
|
341
|
+
const flags = cmpMeta.$flags$;
|
|
342
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
343
|
+
const scopeId2 = addStyle(
|
|
344
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
345
|
+
cmpMeta);
|
|
346
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
347
|
+
elm["s-sc"] = scopeId2;
|
|
348
|
+
elm.classList.add(scopeId2 + "-h");
|
|
349
|
+
}
|
|
350
|
+
endAttachStyles();
|
|
351
|
+
};
|
|
352
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
353
|
+
var isComplexType = (o) => {
|
|
354
|
+
o = typeof o;
|
|
355
|
+
return o === "object" || o === "function";
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
// src/runtime/vdom/h.ts
|
|
232
359
|
var h = (nodeName, vnodeData, ...children) => {
|
|
360
|
+
if (typeof nodeName === "string") {
|
|
361
|
+
nodeName = transformTag(nodeName);
|
|
362
|
+
}
|
|
233
363
|
let child = null;
|
|
234
364
|
let key = null;
|
|
235
365
|
let simple = false;
|
|
@@ -286,7 +416,8 @@ var newVNode = (tag, text) => {
|
|
|
286
416
|
const vnode = {
|
|
287
417
|
$flags$: 0,
|
|
288
418
|
$tag$: tag,
|
|
289
|
-
|
|
419
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
420
|
+
$text$: text != null ? text : null,
|
|
290
421
|
$elm$: null,
|
|
291
422
|
$children$: null
|
|
292
423
|
};
|
|
@@ -330,13 +461,42 @@ var convertToPrivate = (node) => {
|
|
|
330
461
|
vnode.$name$ = node.vname;
|
|
331
462
|
return vnode;
|
|
332
463
|
};
|
|
333
|
-
|
|
464
|
+
|
|
465
|
+
// src/runtime/normalize-watchers.ts
|
|
466
|
+
var normalizeWatchers = (raw) => {
|
|
467
|
+
if (!raw) return void 0;
|
|
468
|
+
const keys = Object.keys(raw);
|
|
469
|
+
if (keys.length === 0) return void 0;
|
|
470
|
+
let hasLegacy = false;
|
|
471
|
+
for (const propName of keys) {
|
|
472
|
+
if (hasLegacy) break;
|
|
473
|
+
for (const h2 of raw[propName]) {
|
|
474
|
+
if (typeof h2 === "string") {
|
|
475
|
+
hasLegacy = true;
|
|
476
|
+
break;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
if (!hasLegacy) return raw;
|
|
481
|
+
const out = {};
|
|
482
|
+
for (const propName of keys) {
|
|
483
|
+
out[propName] = raw[propName].map(
|
|
484
|
+
(h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
|
|
485
|
+
);
|
|
486
|
+
}
|
|
487
|
+
return out;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
// src/runtime/parse-property-value.ts
|
|
491
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
334
492
|
if (propValue != null && !isComplexType(propValue)) {
|
|
335
493
|
if (propType & 4 /* Boolean */) {
|
|
336
|
-
|
|
494
|
+
{
|
|
495
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
496
|
+
}
|
|
337
497
|
}
|
|
338
498
|
if (propType & 2 /* Number */) {
|
|
339
|
-
return parseFloat(propValue);
|
|
499
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
340
500
|
}
|
|
341
501
|
if (propType & 1 /* String */) {
|
|
342
502
|
return String(propValue);
|
|
@@ -345,7 +505,10 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
345
505
|
}
|
|
346
506
|
return propValue;
|
|
347
507
|
};
|
|
348
|
-
var getElement = (ref) =>
|
|
508
|
+
var getElement = (ref) => {
|
|
509
|
+
var _a;
|
|
510
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
511
|
+
};
|
|
349
512
|
|
|
350
513
|
// src/runtime/event-emitter.ts
|
|
351
514
|
var createEvent = (ref, name, flags) => {
|
|
@@ -353,9 +516,9 @@ var createEvent = (ref, name, flags) => {
|
|
|
353
516
|
return {
|
|
354
517
|
emit: (detail) => {
|
|
355
518
|
return emitEvent(elm, name, {
|
|
356
|
-
bubbles:
|
|
357
|
-
composed:
|
|
358
|
-
cancelable:
|
|
519
|
+
bubbles: true,
|
|
520
|
+
composed: true,
|
|
521
|
+
cancelable: true,
|
|
359
522
|
detail
|
|
360
523
|
});
|
|
361
524
|
}
|
|
@@ -366,102 +529,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
366
529
|
elm.dispatchEvent(ev);
|
|
367
530
|
return ev;
|
|
368
531
|
};
|
|
369
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
370
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
371
|
-
let style = styles.get(scopeId2);
|
|
372
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
373
|
-
style = style || new CSSStyleSheet();
|
|
374
|
-
if (typeof style === "string") {
|
|
375
|
-
style = cssText;
|
|
376
|
-
} else {
|
|
377
|
-
style.replaceSync(cssText);
|
|
378
|
-
}
|
|
379
|
-
} else {
|
|
380
|
-
style = cssText;
|
|
381
|
-
}
|
|
382
|
-
styles.set(scopeId2, style);
|
|
383
|
-
};
|
|
384
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
385
|
-
var _a;
|
|
386
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
387
|
-
const style = styles.get(scopeId2);
|
|
388
|
-
if (!win.document) {
|
|
389
|
-
return scopeId2;
|
|
390
|
-
}
|
|
391
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
392
|
-
if (style) {
|
|
393
|
-
if (typeof style === "string") {
|
|
394
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
395
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
396
|
-
let styleElm;
|
|
397
|
-
if (!appliedStyles) {
|
|
398
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
399
|
-
}
|
|
400
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
401
|
-
{
|
|
402
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
403
|
-
styleElm.innerHTML = style;
|
|
404
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
405
|
-
if (nonce != null) {
|
|
406
|
-
styleElm.setAttribute("nonce", nonce);
|
|
407
|
-
}
|
|
408
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
409
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
410
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
411
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
412
|
-
styleContainerNode.insertBefore(
|
|
413
|
-
styleElm,
|
|
414
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
415
|
-
);
|
|
416
|
-
} else if ("host" in styleContainerNode) {
|
|
417
|
-
if (supportsConstructableStylesheets) {
|
|
418
|
-
const stylesheet = new CSSStyleSheet();
|
|
419
|
-
stylesheet.replaceSync(style);
|
|
420
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
421
|
-
} else {
|
|
422
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
423
|
-
if (existingStyleContainer) {
|
|
424
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
425
|
-
} else {
|
|
426
|
-
styleContainerNode.prepend(styleElm);
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
} else {
|
|
430
|
-
styleContainerNode.append(styleElm);
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
434
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
438
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
439
|
-
}
|
|
440
|
-
if (appliedStyles) {
|
|
441
|
-
appliedStyles.add(scopeId2);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
445
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
return scopeId2;
|
|
449
|
-
};
|
|
450
|
-
var attachStyles = (hostRef) => {
|
|
451
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
452
|
-
const elm = hostRef.$hostElement$;
|
|
453
|
-
const flags = cmpMeta.$flags$;
|
|
454
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
455
|
-
const scopeId2 = addStyle(
|
|
456
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
457
|
-
cmpMeta);
|
|
458
|
-
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
459
|
-
elm["s-sc"] = scopeId2;
|
|
460
|
-
elm.classList.add(scopeId2 + "-h");
|
|
461
|
-
}
|
|
462
|
-
endAttachStyles();
|
|
463
|
-
};
|
|
464
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
465
532
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
466
533
|
if (oldValue === newValue) {
|
|
467
534
|
return;
|
|
@@ -499,7 +566,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
499
566
|
}
|
|
500
567
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
501
568
|
if (newValue) {
|
|
502
|
-
newValue
|
|
569
|
+
queueRefAttachment(newValue, elm);
|
|
503
570
|
}
|
|
504
571
|
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
505
572
|
if (memberName[2] === "-") {
|
|
@@ -519,6 +586,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
519
586
|
plt.ael(elm, memberName, newValue, capture);
|
|
520
587
|
}
|
|
521
588
|
}
|
|
589
|
+
} else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
590
|
+
const propName = memberName.slice(5);
|
|
591
|
+
let attrName;
|
|
592
|
+
{
|
|
593
|
+
const hostRef = getHostRef(elm);
|
|
594
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
595
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
596
|
+
if (memberMeta && memberMeta[1]) {
|
|
597
|
+
attrName = memberMeta[1];
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
if (!attrName) {
|
|
602
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
603
|
+
}
|
|
604
|
+
if (newValue == null || newValue === false) {
|
|
605
|
+
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
606
|
+
elm.removeAttribute(attrName);
|
|
607
|
+
}
|
|
608
|
+
} else {
|
|
609
|
+
elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
610
|
+
}
|
|
611
|
+
return;
|
|
612
|
+
} else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
613
|
+
const propName = memberName.slice(5);
|
|
614
|
+
try {
|
|
615
|
+
elm[propName] = newValue;
|
|
616
|
+
} catch (e) {
|
|
617
|
+
}
|
|
618
|
+
return;
|
|
522
619
|
} else {
|
|
523
620
|
const isComplex = isComplexType(newValue);
|
|
524
621
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
@@ -527,7 +624,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
527
624
|
const n = newValue == null ? "" : newValue;
|
|
528
625
|
if (memberName === "list") {
|
|
529
626
|
isProp = false;
|
|
530
|
-
} else if (oldValue == null || elm[memberName]
|
|
627
|
+
} else if (oldValue == null || elm[memberName] !== n) {
|
|
531
628
|
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
532
629
|
elm[memberName] = n;
|
|
533
630
|
} else {
|
|
@@ -618,30 +715,31 @@ function sortedAttrNames(attrNames) {
|
|
|
618
715
|
var hostTagName;
|
|
619
716
|
var useNativeShadowDom = false;
|
|
620
717
|
var isSvgMode = false;
|
|
718
|
+
var refCallbacksToRemove = [];
|
|
719
|
+
var refCallbacksToAttach = [];
|
|
621
720
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
622
721
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
623
722
|
let i2 = 0;
|
|
624
723
|
let elm;
|
|
625
724
|
let childNode;
|
|
626
|
-
if (newVNode2.$text$
|
|
725
|
+
if (newVNode2.$text$ != null) {
|
|
627
726
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
628
727
|
} else {
|
|
629
728
|
if (!win.document) {
|
|
630
|
-
throw new Error(
|
|
631
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
632
|
-
);
|
|
729
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
633
730
|
}
|
|
634
731
|
elm = newVNode2.$elm$ = win.document.createElement(
|
|
635
|
-
|
|
732
|
+
newVNode2.$tag$
|
|
636
733
|
);
|
|
637
734
|
{
|
|
638
735
|
updateElement(null, newVNode2, isSvgMode);
|
|
639
736
|
}
|
|
640
737
|
if (newVNode2.$children$) {
|
|
738
|
+
const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
|
|
641
739
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
642
740
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
643
741
|
if (childNode) {
|
|
644
|
-
|
|
742
|
+
appendTarget.appendChild(childNode);
|
|
645
743
|
}
|
|
646
744
|
}
|
|
647
745
|
}
|
|
@@ -649,12 +747,34 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
649
747
|
elm["s-hn"] = hostTagName;
|
|
650
748
|
return elm;
|
|
651
749
|
};
|
|
750
|
+
var relocateToHostRoot = (parentElm) => {
|
|
751
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
752
|
+
const host = parentElm.closest(hostTagName.toLowerCase());
|
|
753
|
+
if (host != null) {
|
|
754
|
+
const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
|
|
755
|
+
(ref) => ref["s-cr"]
|
|
756
|
+
);
|
|
757
|
+
const childNodeArray = Array.from(
|
|
758
|
+
parentElm.__childNodes || parentElm.childNodes
|
|
759
|
+
);
|
|
760
|
+
for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
|
|
761
|
+
if (childNode["s-sh"] != null) {
|
|
762
|
+
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
763
|
+
childNode["s-sh"] = void 0;
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
768
|
+
};
|
|
652
769
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
653
770
|
let containerElm = parentElm;
|
|
654
771
|
let childNode;
|
|
655
772
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
656
773
|
containerElm = containerElm.shadowRoot;
|
|
657
774
|
}
|
|
775
|
+
if (parentVNode.$tag$ === "template") {
|
|
776
|
+
containerElm = containerElm.content;
|
|
777
|
+
}
|
|
658
778
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
659
779
|
if (vnodes[startIdx]) {
|
|
660
780
|
childNode = createElm(null, parentVNode, startIdx);
|
|
@@ -690,6 +810,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
690
810
|
let newEndVnode = newCh[newEndIdx];
|
|
691
811
|
let node;
|
|
692
812
|
let elmToMove;
|
|
813
|
+
const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
|
|
693
814
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
694
815
|
if (oldStartVnode == null) {
|
|
695
816
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
@@ -709,12 +830,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
709
830
|
newEndVnode = newCh[--newEndIdx];
|
|
710
831
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
711
832
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
712
|
-
insertBefore(
|
|
833
|
+
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
713
834
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
714
835
|
newEndVnode = newCh[--newEndIdx];
|
|
715
836
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
716
837
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
717
|
-
insertBefore(
|
|
838
|
+
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
718
839
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
719
840
|
newStartVnode = newCh[++newStartIdx];
|
|
720
841
|
} else {
|
|
@@ -777,9 +898,16 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
777
898
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
778
899
|
const oldChildren = oldVNode.$children$;
|
|
779
900
|
const newChildren = newVNode2.$children$;
|
|
901
|
+
const tag = newVNode2.$tag$;
|
|
780
902
|
const text = newVNode2.$text$;
|
|
781
|
-
if (text
|
|
903
|
+
if (text == null) {
|
|
782
904
|
{
|
|
905
|
+
if (tag === "slot" && !useNativeShadowDom) {
|
|
906
|
+
if (oldVNode.$name$ !== newVNode2.$name$) {
|
|
907
|
+
newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
|
|
908
|
+
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
783
911
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
784
912
|
}
|
|
785
913
|
if (oldChildren !== null && newChildren !== null) {
|
|
@@ -794,19 +922,36 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
794
922
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
795
923
|
) {
|
|
796
924
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
797
|
-
}
|
|
925
|
+
} else ;
|
|
798
926
|
} else if (oldVNode.$text$ !== text) {
|
|
799
927
|
elm.data = text;
|
|
800
928
|
}
|
|
801
929
|
};
|
|
802
930
|
var nullifyVNodeRefs = (vNode) => {
|
|
803
931
|
{
|
|
804
|
-
vNode.$attrs$ && vNode.$attrs$.ref
|
|
932
|
+
if (vNode.$attrs$ && vNode.$attrs$.ref) {
|
|
933
|
+
refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
|
|
934
|
+
}
|
|
805
935
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
806
936
|
}
|
|
807
937
|
};
|
|
808
|
-
var
|
|
938
|
+
var queueRefAttachment = (refCallback, elm) => {
|
|
939
|
+
{
|
|
940
|
+
refCallbacksToAttach.push(() => refCallback(elm));
|
|
941
|
+
}
|
|
942
|
+
};
|
|
943
|
+
var flushQueuedRefCallbacks = () => {
|
|
809
944
|
{
|
|
945
|
+
refCallbacksToRemove.forEach((cb) => cb());
|
|
946
|
+
refCallbacksToRemove.length = 0;
|
|
947
|
+
refCallbacksToAttach.forEach((cb) => cb());
|
|
948
|
+
refCallbacksToAttach.length = 0;
|
|
949
|
+
}
|
|
950
|
+
};
|
|
951
|
+
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
952
|
+
if (parent.__insertBefore) {
|
|
953
|
+
return parent.__insertBefore(newNode, reference);
|
|
954
|
+
} else {
|
|
810
955
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
811
956
|
}
|
|
812
957
|
};
|
|
@@ -814,13 +959,16 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
814
959
|
const hostElm = hostRef.$hostElement$;
|
|
815
960
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
816
961
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
817
|
-
const
|
|
962
|
+
const isHostElement = isHost(renderFnResults);
|
|
963
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
818
964
|
hostTagName = hostElm.tagName;
|
|
819
965
|
if (cmpMeta.$attrsToReflect$) {
|
|
820
966
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
821
|
-
cmpMeta.$attrsToReflect$.
|
|
822
|
-
|
|
823
|
-
|
|
967
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
968
|
+
{
|
|
969
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
970
|
+
}
|
|
971
|
+
});
|
|
824
972
|
}
|
|
825
973
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
826
974
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -835,6 +983,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
835
983
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
836
984
|
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
837
985
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
986
|
+
flushQueuedRefCallbacks();
|
|
838
987
|
};
|
|
839
988
|
|
|
840
989
|
// src/runtime/update-component.ts
|
|
@@ -860,6 +1009,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
860
1009
|
}
|
|
861
1010
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
862
1011
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1012
|
+
if (isInitialLoad) {
|
|
1013
|
+
queueMicrotask(() => {
|
|
1014
|
+
dispatch();
|
|
1015
|
+
});
|
|
1016
|
+
return;
|
|
1017
|
+
}
|
|
863
1018
|
return writeTask(dispatch) ;
|
|
864
1019
|
};
|
|
865
1020
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -873,6 +1028,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
873
1028
|
}
|
|
874
1029
|
let maybePromise;
|
|
875
1030
|
if (isInitialLoad) {
|
|
1031
|
+
{
|
|
1032
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
1033
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
876
1036
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
877
1037
|
} else {
|
|
878
1038
|
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
@@ -881,8 +1041,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
881
1041
|
endSchedule();
|
|
882
1042
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
883
1043
|
};
|
|
884
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
885
|
-
console.error(
|
|
1044
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
1045
|
+
console.error(err);
|
|
886
1046
|
fn();
|
|
887
1047
|
}) : fn();
|
|
888
1048
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -910,7 +1070,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
910
1070
|
if (childrenPromises.length === 0) {
|
|
911
1071
|
postUpdate();
|
|
912
1072
|
} else {
|
|
913
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
1073
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
914
1074
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
915
1075
|
childrenPromises.length = 0;
|
|
916
1076
|
}
|
|
@@ -920,7 +1080,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
920
1080
|
try {
|
|
921
1081
|
instance = instance.render && instance.render();
|
|
922
1082
|
{
|
|
923
|
-
hostRef.$flags$ &=
|
|
1083
|
+
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
924
1084
|
}
|
|
925
1085
|
{
|
|
926
1086
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -969,7 +1129,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
969
1129
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
970
1130
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
971
1131
|
}
|
|
972
|
-
hostRef.$flags$ &=
|
|
1132
|
+
hostRef.$flags$ &= -517;
|
|
973
1133
|
}
|
|
974
1134
|
};
|
|
975
1135
|
var appDidLoad = (who) => {
|
|
@@ -994,6 +1154,9 @@ var addHydratedFlag = (elm) => {
|
|
|
994
1154
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
995
1155
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
996
1156
|
const hostRef = getHostRef(ref);
|
|
1157
|
+
if (!hostRef) {
|
|
1158
|
+
return;
|
|
1159
|
+
}
|
|
997
1160
|
if (!hostRef) {
|
|
998
1161
|
throw new Error(
|
|
999
1162
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
@@ -1003,30 +1166,42 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1003
1166
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1004
1167
|
const flags = hostRef.$flags$;
|
|
1005
1168
|
const instance = hostRef.$lazyInstance$ ;
|
|
1006
|
-
newVal = parsePropertyValue(
|
|
1169
|
+
newVal = parsePropertyValue(
|
|
1170
|
+
newVal,
|
|
1171
|
+
cmpMeta.$members$[propName][0]);
|
|
1007
1172
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1008
1173
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1009
1174
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1010
1175
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1011
|
-
if (
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1176
|
+
if (cmpMeta.$watchers$) {
|
|
1177
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1178
|
+
if (watchMethods) {
|
|
1179
|
+
watchMethods.map((watcher) => {
|
|
1180
|
+
try {
|
|
1181
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1182
|
+
if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
|
|
1183
|
+
if (!instance) {
|
|
1184
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
1185
|
+
hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
|
|
1186
|
+
});
|
|
1187
|
+
} else {
|
|
1188
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1189
|
+
}
|
|
1020
1190
|
}
|
|
1021
|
-
})
|
|
1022
|
-
|
|
1023
|
-
}
|
|
1024
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1025
|
-
if (instance.componentShouldUpdate) {
|
|
1026
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1027
|
-
return;
|
|
1191
|
+
} catch (e) {
|
|
1192
|
+
consoleError(e, elm);
|
|
1028
1193
|
}
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
if (flags & 2 /* hasRendered */) {
|
|
1198
|
+
if (instance.componentShouldUpdate) {
|
|
1199
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
1200
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
1201
|
+
return;
|
|
1029
1202
|
}
|
|
1203
|
+
}
|
|
1204
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
1030
1205
|
scheduleUpdate(hostRef, false);
|
|
1031
1206
|
}
|
|
1032
1207
|
}
|
|
@@ -1037,14 +1212,22 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1037
1212
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1038
1213
|
var _a, _b;
|
|
1039
1214
|
const prototype = Cstr.prototype;
|
|
1040
|
-
if (cmpMeta.$members$ ||
|
|
1041
|
-
|
|
1042
|
-
cmpMeta.$watchers$
|
|
1215
|
+
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
1216
|
+
{
|
|
1217
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1218
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1219
|
+
}
|
|
1220
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
1221
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1222
|
+
}
|
|
1223
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
1224
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1225
|
+
}
|
|
1043
1226
|
}
|
|
1044
1227
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1045
1228
|
members.map(([memberName, [memberFlags]]) => {
|
|
1046
1229
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1047
|
-
const { get: origGetter, set: origSetter } =
|
|
1230
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
1048
1231
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1049
1232
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1050
1233
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -1067,14 +1250,19 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1067
1250
|
Object.defineProperty(prototype, memberName, {
|
|
1068
1251
|
set(newValue) {
|
|
1069
1252
|
const ref = getHostRef(this);
|
|
1253
|
+
if (!ref) {
|
|
1254
|
+
return;
|
|
1255
|
+
}
|
|
1070
1256
|
if (origSetter) {
|
|
1071
1257
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1072
1258
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1073
1259
|
newValue = ref.$instanceValues$.get(memberName);
|
|
1074
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1075
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1076
1260
|
}
|
|
1077
|
-
origSetter.apply(this, [
|
|
1261
|
+
origSetter.apply(this, [
|
|
1262
|
+
parsePropertyValue(
|
|
1263
|
+
newValue,
|
|
1264
|
+
memberFlags)
|
|
1265
|
+
]);
|
|
1078
1266
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1079
1267
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1080
1268
|
return;
|
|
@@ -1083,7 +1271,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1083
1271
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1084
1272
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1085
1273
|
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1086
|
-
ref.$
|
|
1274
|
+
ref.$fetchedCbList$.push(() => {
|
|
1087
1275
|
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1088
1276
|
ref.$lazyInstance$[memberName] = newValue;
|
|
1089
1277
|
}
|
|
@@ -1096,13 +1284,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1096
1284
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1097
1285
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
1098
1286
|
}
|
|
1099
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1287
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1288
|
+
newValue,
|
|
1289
|
+
memberFlags);
|
|
1100
1290
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1101
1291
|
};
|
|
1102
1292
|
if (ref.$lazyInstance$) {
|
|
1103
1293
|
setterSetVal();
|
|
1104
1294
|
} else {
|
|
1105
|
-
ref.$
|
|
1295
|
+
ref.$fetchedCbList$.push(() => {
|
|
1296
|
+
setterSetVal();
|
|
1297
|
+
});
|
|
1106
1298
|
}
|
|
1107
1299
|
}
|
|
1108
1300
|
}
|
|
@@ -1115,29 +1307,36 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1115
1307
|
plt.jmp(() => {
|
|
1116
1308
|
var _a2;
|
|
1117
1309
|
const propName = attrNameToPropName.get(attrName);
|
|
1310
|
+
const hostRef = getHostRef(this);
|
|
1118
1311
|
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1119
1312
|
newValue = this[propName];
|
|
1120
1313
|
delete this[propName];
|
|
1121
|
-
}
|
|
1314
|
+
}
|
|
1315
|
+
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1122
1316
|
this[propName] == newValue) {
|
|
1123
1317
|
return;
|
|
1124
1318
|
} else if (propName == null) {
|
|
1125
|
-
const hostRef = getHostRef(this);
|
|
1126
1319
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1127
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) &&
|
|
1320
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
|
|
1128
1321
|
const instance = hostRef.$lazyInstance$ ;
|
|
1129
1322
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1130
|
-
entry == null ? void 0 : entry.forEach((
|
|
1131
|
-
|
|
1132
|
-
|
|
1323
|
+
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
1324
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1325
|
+
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
1326
|
+
instance[watchMethodName].call(instance, newValue, oldValue, attrName);
|
|
1133
1327
|
}
|
|
1134
1328
|
});
|
|
1135
1329
|
}
|
|
1136
1330
|
return;
|
|
1137
1331
|
}
|
|
1332
|
+
const propFlags = members.find(([m]) => m === propName);
|
|
1333
|
+
const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
|
|
1334
|
+
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
1335
|
+
if (isBooleanTarget) {
|
|
1336
|
+
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1337
|
+
}
|
|
1138
1338
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1139
|
-
|
|
1140
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1339
|
+
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1141
1340
|
this[propName] = newValue;
|
|
1142
1341
|
}
|
|
1143
1342
|
});
|
|
@@ -1145,7 +1344,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1145
1344
|
Cstr.observedAttributes = Array.from(
|
|
1146
1345
|
/* @__PURE__ */ new Set([
|
|
1147
1346
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1148
|
-
...members.filter(([_, m]) => m[0] &
|
|
1347
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
1149
1348
|
var _a2;
|
|
1150
1349
|
const attrName = m[1] || propName;
|
|
1151
1350
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -1164,69 +1363,84 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1164
1363
|
// src/runtime/initialize-component.ts
|
|
1165
1364
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1166
1365
|
let Cstr;
|
|
1167
|
-
|
|
1168
|
-
hostRef.$flags$
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1366
|
+
try {
|
|
1367
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1368
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1369
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1370
|
+
if (bundleId) {
|
|
1371
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1372
|
+
if (CstrImport && "then" in CstrImport) {
|
|
1373
|
+
const endLoad = uniqueTime();
|
|
1374
|
+
Cstr = await CstrImport;
|
|
1375
|
+
endLoad();
|
|
1376
|
+
} else {
|
|
1377
|
+
Cstr = CstrImport;
|
|
1378
|
+
}
|
|
1379
|
+
if (!Cstr) {
|
|
1380
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1381
|
+
}
|
|
1382
|
+
if (!Cstr.isProxied) {
|
|
1383
|
+
{
|
|
1384
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1385
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1386
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1387
|
+
}
|
|
1388
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1389
|
+
Cstr.isProxied = true;
|
|
1390
|
+
}
|
|
1391
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1183
1392
|
{
|
|
1184
|
-
|
|
1393
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1185
1394
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1395
|
+
try {
|
|
1396
|
+
new Cstr(hostRef);
|
|
1397
|
+
} catch (e) {
|
|
1398
|
+
consoleError(e, elm);
|
|
1399
|
+
}
|
|
1400
|
+
{
|
|
1401
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1402
|
+
}
|
|
1403
|
+
{
|
|
1404
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1405
|
+
}
|
|
1406
|
+
endNewInstance();
|
|
1407
|
+
{
|
|
1408
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1409
|
+
}
|
|
1410
|
+
} else {
|
|
1411
|
+
Cstr = elm.constructor;
|
|
1412
|
+
const cmpTag = elm.localName;
|
|
1413
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1200
1414
|
}
|
|
1201
|
-
{
|
|
1202
|
-
|
|
1415
|
+
if (Cstr && Cstr.style) {
|
|
1416
|
+
let style;
|
|
1417
|
+
if (typeof Cstr.style === "string") {
|
|
1418
|
+
style = Cstr.style;
|
|
1419
|
+
}
|
|
1420
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1421
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
1422
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1423
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1424
|
+
endRegisterStyles();
|
|
1425
|
+
}
|
|
1203
1426
|
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1427
|
+
}
|
|
1428
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1429
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1430
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1431
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1206
1432
|
} else {
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
if (
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
if (!styles.has(scopeId2)) {
|
|
1218
|
-
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1219
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1220
|
-
endRegisterStyles();
|
|
1221
|
-
}
|
|
1433
|
+
schedule();
|
|
1434
|
+
}
|
|
1435
|
+
} catch (e) {
|
|
1436
|
+
consoleError(e, elm);
|
|
1437
|
+
if (hostRef.$onRenderResolve$) {
|
|
1438
|
+
hostRef.$onRenderResolve$();
|
|
1439
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1440
|
+
}
|
|
1441
|
+
if (hostRef.$onReadyResolve$) {
|
|
1442
|
+
hostRef.$onReadyResolve$(elm);
|
|
1222
1443
|
}
|
|
1223
|
-
}
|
|
1224
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1225
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1226
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1227
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1228
|
-
} else {
|
|
1229
|
-
schedule();
|
|
1230
1444
|
}
|
|
1231
1445
|
};
|
|
1232
1446
|
var fireConnectedCallback = (instance, elm) => {
|
|
@@ -1239,6 +1453,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
1239
1453
|
var connectedCallback = (elm) => {
|
|
1240
1454
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1241
1455
|
const hostRef = getHostRef(elm);
|
|
1456
|
+
if (!hostRef) {
|
|
1457
|
+
return;
|
|
1458
|
+
}
|
|
1242
1459
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1243
1460
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1244
1461
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -1254,7 +1471,7 @@ var connectedCallback = (elm) => {
|
|
|
1254
1471
|
}
|
|
1255
1472
|
if (cmpMeta.$members$) {
|
|
1256
1473
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1257
|
-
if (memberFlags & 31 /* Prop */ &&
|
|
1474
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
1258
1475
|
const value = elm[memberName];
|
|
1259
1476
|
delete elm[memberName];
|
|
1260
1477
|
elm[memberName] = value;
|
|
@@ -1315,19 +1532,15 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1315
1532
|
let isBootstrapping = true;
|
|
1316
1533
|
Object.assign(plt, options);
|
|
1317
1534
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1318
|
-
let hasSlotRelocation = false;
|
|
1319
1535
|
lazyBundles.map((lazyBundle) => {
|
|
1320
1536
|
lazyBundle[1].map((compactMeta) => {
|
|
1321
|
-
var _a2;
|
|
1537
|
+
var _a2, _b;
|
|
1322
1538
|
const cmpMeta = {
|
|
1323
1539
|
$flags$: compactMeta[0],
|
|
1324
1540
|
$tagName$: compactMeta[1],
|
|
1325
1541
|
$members$: compactMeta[2],
|
|
1326
1542
|
$listeners$: compactMeta[3]
|
|
1327
1543
|
};
|
|
1328
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1329
|
-
hasSlotRelocation = true;
|
|
1330
|
-
}
|
|
1331
1544
|
{
|
|
1332
1545
|
cmpMeta.$members$ = compactMeta[2];
|
|
1333
1546
|
}
|
|
@@ -1335,25 +1548,24 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1335
1548
|
cmpMeta.$attrsToReflect$ = [];
|
|
1336
1549
|
}
|
|
1337
1550
|
{
|
|
1338
|
-
cmpMeta.$watchers$ = (
|
|
1551
|
+
cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
|
|
1552
|
+
cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
|
|
1553
|
+
cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
|
|
1339
1554
|
}
|
|
1340
|
-
const tagName = cmpMeta.$tagName
|
|
1555
|
+
const tagName = transformTag(cmpMeta.$tagName$);
|
|
1341
1556
|
const HostElement = class extends HTMLElement {
|
|
1557
|
+
["s-p"];
|
|
1558
|
+
["s-rc"];
|
|
1559
|
+
hasRegisteredEventListeners = false;
|
|
1342
1560
|
// StencilLazyHost
|
|
1343
1561
|
constructor(self) {
|
|
1344
1562
|
super(self);
|
|
1345
|
-
this.hasRegisteredEventListeners = false;
|
|
1346
1563
|
self = this;
|
|
1347
1564
|
registerHost(self, cmpMeta);
|
|
1348
1565
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1349
1566
|
{
|
|
1350
1567
|
if (!self.shadowRoot) {
|
|
1351
|
-
|
|
1352
|
-
self.attachShadow({
|
|
1353
|
-
mode: "open",
|
|
1354
|
-
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
1355
|
-
});
|
|
1356
|
-
}
|
|
1568
|
+
createShadowRoot.call(self, cmpMeta);
|
|
1357
1569
|
} else {
|
|
1358
1570
|
if (self.shadowRoot.mode !== "open") {
|
|
1359
1571
|
throw new Error(
|
|
@@ -1365,7 +1577,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1365
1577
|
}
|
|
1366
1578
|
}
|
|
1367
1579
|
connectedCallback() {
|
|
1368
|
-
getHostRef(this);
|
|
1580
|
+
const hostRef = getHostRef(this);
|
|
1581
|
+
if (!hostRef) {
|
|
1582
|
+
return;
|
|
1583
|
+
}
|
|
1369
1584
|
if (!this.hasRegisteredEventListeners) {
|
|
1370
1585
|
this.hasRegisteredEventListeners = true;
|
|
1371
1586
|
}
|
|
@@ -1384,6 +1599,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1384
1599
|
plt.raf(() => {
|
|
1385
1600
|
var _a3;
|
|
1386
1601
|
const hostRef = getHostRef(this);
|
|
1602
|
+
if (!hostRef) {
|
|
1603
|
+
return;
|
|
1604
|
+
}
|
|
1387
1605
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1388
1606
|
if (i2 > -1) {
|
|
1389
1607
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -1394,7 +1612,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1394
1612
|
});
|
|
1395
1613
|
}
|
|
1396
1614
|
componentOnReady() {
|
|
1397
|
-
|
|
1615
|
+
var _a3;
|
|
1616
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
1398
1617
|
}
|
|
1399
1618
|
};
|
|
1400
1619
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -1408,9 +1627,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1408
1627
|
});
|
|
1409
1628
|
});
|
|
1410
1629
|
if (cmpTags.length > 0) {
|
|
1411
|
-
if (hasSlotRelocation) {
|
|
1412
|
-
dataStyles.textContent += SLOT_FB_CSS;
|
|
1413
|
-
}
|
|
1414
1630
|
{
|
|
1415
1631
|
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1416
1632
|
}
|
|
@@ -1436,6 +1652,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1436
1652
|
|
|
1437
1653
|
// src/runtime/nonce.ts
|
|
1438
1654
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1655
|
+
function transformTag(tag) {
|
|
1656
|
+
return tag;
|
|
1657
|
+
}
|
|
1439
1658
|
|
|
1440
1659
|
exports.Host = Host;
|
|
1441
1660
|
exports.bootstrapLazy = bootstrapLazy;
|