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