@shrfe/assets 1.0.1 → 1.0.3
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/css/ds/component.css +488 -0
- package/css/ds/semantics/color/color.css +334 -0
- package/css/ds/semantics/shadow/shadow.css +37 -0
- package/css/ds/semantics/sizing/sizing.css +50 -0
- package/css/ds/semantics/typography/typography.css +95 -0
- package/fonts/Matter/matter-bold-webfont.woff +0 -0
- package/fonts/Matter/matter-bold-webfont.woff2 +0 -0
- package/fonts/Matter/matter-bolditalic-webfont.woff +0 -0
- package/fonts/Matter/matter-bolditalic-webfont.woff2 +0 -0
- package/fonts/Matter/matter-heavy-webfont.woff +0 -0
- package/fonts/Matter/matter-heavy-webfont.woff2 +0 -0
- package/fonts/Matter/matter-heavyitalic-webfont.woff +0 -0
- package/fonts/Matter/matter-heavyitalic-webfont.woff2 +0 -0
- package/fonts/Matter/matter-light-webfont.woff +0 -0
- package/fonts/Matter/matter-light-webfont.woff2 +0 -0
- package/fonts/Matter/matter-lightitalic-webfont.woff +0 -0
- package/fonts/Matter/matter-lightitalic-webfont.woff2 +0 -0
- package/fonts/Matter/matter-medium-webfont.woff +0 -0
- package/fonts/Matter/matter-medium-webfont.woff2 +0 -0
- package/fonts/Matter/matter-mediumitalic-webfont.woff +0 -0
- package/fonts/Matter/matter-mediumitalic-webfont.woff2 +0 -0
- package/fonts/Matter/matter-regular-webfont.woff +0 -0
- package/fonts/Matter/matter-regular-webfont.woff2 +0 -0
- package/fonts/Matter/matter-regularitalic-webfont.woff +0 -0
- package/fonts/Matter/matter-regularitalic-webfont.woff2 +0 -0
- package/fonts/Matter/matter-semibold-webfont.woff +0 -0
- package/fonts/Matter/matter-semibold-webfont.woff2 +0 -0
- package/fonts/Matter/matter-semibolditalic-webfont.woff +0 -0
- package/fonts/Matter/matter-semibolditalic-webfont.woff2 +0 -0
- package/fonts/Sora/Sora-Bold.woff +0 -0
- package/fonts/Sora/Sora-Bold.woff2 +0 -0
- package/fonts/Sora/Sora-ExtraBold.woff +0 -0
- package/fonts/Sora/Sora-ExtraBold.woff2 +0 -0
- package/fonts/Sora/Sora-Light.woff +0 -0
- package/fonts/Sora/Sora-Light.woff2 +0 -0
- package/fonts/Sora/Sora-Medium.woff +0 -0
- package/fonts/Sora/Sora-Medium.woff2 +0 -0
- package/fonts/Sora/Sora-Regular.woff +0 -0
- package/fonts/Sora/Sora-Regular.woff2 +0 -0
- package/fonts/Sora/Sora-SemiBold.woff +0 -0
- package/fonts/Sora/Sora-SemiBold.woff2 +0 -0
- package/fonts/css/matter.css +90 -0
- package/fonts/css/sora.css +41 -0
- package/js/shrfe-core-umd.js +8 -8
- package/package.json +5 -4
- package/wc-lib/index.esm.js +2 -0
- package/wc-lib/index.esm.js.map +1 -0
- package/wc-lib/loader.esm.js.map +1 -0
- package/wc-lib/p-096539c0.entry.js +2 -0
- package/wc-lib/p-096539c0.entry.js.map +1 -0
- package/wc-lib/p-0a8a7047.entry.js +2 -0
- package/wc-lib/p-0a8a7047.entry.js.map +1 -0
- package/wc-lib/p-0fbe37fb.entry.js +2 -0
- package/wc-lib/p-0fbe37fb.entry.js.map +1 -0
- package/wc-lib/p-15f3f20f.entry.js +2 -0
- package/wc-lib/p-15f3f20f.entry.js.map +1 -0
- package/wc-lib/p-2000af03.entry.js +2 -0
- package/wc-lib/p-2000af03.entry.js.map +1 -0
- package/wc-lib/p-2b6aa70d.entry.js +2 -0
- package/wc-lib/p-2b6aa70d.entry.js.map +1 -0
- package/wc-lib/p-3c8f0d17.entry.js +2 -0
- package/wc-lib/p-3c8f0d17.entry.js.map +1 -0
- package/wc-lib/p-4c8f82ca.entry.js +2 -0
- package/wc-lib/p-4c8f82ca.entry.js.map +1 -0
- package/wc-lib/p-52ed4a58.css +1 -0
- package/wc-lib/p-5bce47c4.entry.js +2 -0
- package/wc-lib/p-5bce47c4.entry.js.map +1 -0
- package/wc-lib/p-5d0c21e5.entry.js +2 -0
- package/wc-lib/p-5d0c21e5.entry.js.map +1 -0
- package/wc-lib/p-5dc96a82.entry.js +2 -0
- package/wc-lib/p-5dc96a82.entry.js.map +1 -0
- package/wc-lib/p-8b4b826d.entry.js +2 -0
- package/wc-lib/p-8b4b826d.entry.js.map +1 -0
- package/wc-lib/p-94005d1c.entry.js +2 -0
- package/wc-lib/p-94005d1c.entry.js.map +1 -0
- package/wc-lib/p-DFCAnQFT.js +2 -0
- package/wc-lib/p-DFCAnQFT.js.map +1 -0
- package/wc-lib/p-DQNvkMYd.js +7 -0
- package/wc-lib/p-DQNvkMYd.js.map +1 -0
- package/wc-lib/p-DQuL1Twl.js +2 -0
- package/wc-lib/p-DQuL1Twl.js.map +1 -0
- package/wc-lib/p-Dcu5mHhz.js +2 -0
- package/wc-lib/p-Dcu5mHhz.js.map +1 -0
- package/wc-lib/p-DnIVQjp-.js +3 -0
- package/wc-lib/p-DnIVQjp-.js.map +1 -0
- package/wc-lib/p-a1f5a646.entry.js +2 -0
- package/wc-lib/p-a1f5a646.entry.js.map +1 -0
- package/wc-lib/p-ab651070.entry.js +2 -0
- package/wc-lib/p-ab651070.entry.js.map +1 -0
- package/wc-lib/p-ebff2546.entry.js +2 -0
- package/wc-lib/p-ebff2546.entry.js.map +1 -0
- package/wc-lib/p-f2b26f9b.js +2 -0
- package/wc-lib/p-f50dac89.entry.js +2 -0
- package/wc-lib/p-f50dac89.entry.js.map +1 -0
- package/wc-lib/p-f687fd8c.entry.js +6 -0
- package/wc-lib/p-f687fd8c.entry.js.map +1 -0
- package/wc-lib/p-f8e83f3f.entry.js +2 -0
- package/wc-lib/p-f8e83f3f.entry.js.map +1 -0
- package/wc-lib/swc-alert.entry.esm.js.map +1 -0
- package/wc-lib/swc-banner.entry.esm.js.map +1 -0
- package/wc-lib/swc-checkbox-group.entry.esm.js.map +1 -0
- package/wc-lib/swc-checkbox.entry.esm.js.map +1 -0
- package/wc-lib/swc-file-uploader.entry.esm.js.map +1 -0
- package/wc-lib/swc-multiple-file.swc-single-file.entry.esm.js.map +1 -0
- package/wc-lib/swc-radio-input.entry.esm.js.map +1 -0
- package/wc-lib/swc-side-panel.entry.esm.js.map +1 -0
- package/wc-lib/swc-skeleton.entry.esm.js.map +1 -0
- package/wc-lib/swc-stepper-item.entry.esm.js.map +1 -0
- package/wc-lib/swc-stepper.entry.esm.js.map +1 -0
- package/wc-lib/swc-table-footer.entry.esm.js.map +1 -0
- package/wc-lib/swc-tag.entry.esm.js.map +1 -0
- package/wc-lib/swc-tags-input.entry.esm.js.map +1 -0
- package/wc-lib/swc-toast.entry.esm.js.map +1 -0
- package/wc-lib/swc-top-nav.entry.esm.js.map +1 -0
- package/wc-lib/swc-tour-guide-step.entry.esm.js.map +1 -0
- package/wc-lib/swc-tour-guide.entry.esm.js.map +1 -0
- package/wc-lib/wc-lib.css +1 -0
- package/wc-lib/wc-lib.esm.js +2 -0
- package/wc-lib/wc-lib.esm.js.map +1 -0
- package/wc-lib/wc-lib.js +33 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p as e,b as a}from"./p-DnIVQjp-.js";export{s as setNonce}from"./p-DnIVQjp-.js";import{g as i}from"./p-DQuL1Twl.js";var t=()=>{const a=import.meta.url;const s={};if(a!==""){s.resourcesUrl=new URL(".",a).href}return e(s)};t().then((async e=>{await i();return a(JSON.parse('[["p-f50dac89",[[2,"swc-file-uploader",{"disabled":[516],"extended":[516],"thumbnail":[513],"inverted":[516],"hasError":[516,"has-error"],"progress":[514],"multiple":[516],"type":[513],"maxFileSize":[2,"max-file-size"],"accepts":[16],"files":[32],"selectedFileIndex":[32]}]]],["p-94005d1c",[[4,"swc-top-nav",{"maxWidth":[1,"max-width"],"roleWrapperWidth":[514,"role-wrapper-width"],"hasNotifications":[516,"has-notifications"],"hasReadNotifications":[516,"has-read-notifications"],"hasUserRoleDropdown":[516,"has-user-role-dropdown"],"hasSearch":[516,"has-search"],"areLinksVisible":[32],"isSearchVisible":[32],"searchQuery":[32]},[[0,"change","handleInputEventChange"]],{"isSearchVisible":["searchVisibleChangeHandler"]}]]],["p-4c8f82ca",[[0,"swc-tour-guide",{"startTour":[4,"start-tour"],"dismissible":[4],"useModalOverlay":[4,"use-modal-overlay"],"useHighlightSteps":[4,"use-highlight-steps"],"showArrow":[4,"show-arrow"],"variant":[1],"steps":[16],"instance":[32],"currentIndex":[32]},null,{"startTour":["startTourHandler"]}]]],["p-5bce47c4",[[2,"swc-toast",{"type":[1025],"position":[1025],"_title":[1025],"message":[1025],"timeout":[1026],"showTitle":[1028,"show-title"],"dismissible":[1028],"isVisible":[1028,"is-visible"],"timeoutId":[1040,"timeout-id"],"showToast":[64],"reset":[64]}]]],["p-3c8f0d17",[[2,"swc-alert",{"message":[1],"intent":[1],"variant":[1],"position":[1],"isVisible":[1028,"is-visible"],"iconButtonAriaLabel":[1,"icon-button-aria-label"],"alertIcon":[32],"dismissIconColor":[32],"show":[64],"hide":[64]}]]],["p-5dc96a82",[[6,"swc-checkbox-group",{"options":[16],"direction":[1],"value":[1040]},[[0,"checkboxChange","checkboxChangeHandler"]],{"value":["valueChangeHandler"]}]]],["p-5d0c21e5",[[6,"swc-side-panel",{"isModalOpen":[4,"is-modal-open"],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"size":[1],"position":[1]}]]],["p-f8e83f3f",[[6,"swc-banner",{"variant":[1],"showTitleIcon":[4,"show-title-icon"],"dismissible":[4],"titleId":[32],"bodyId":[32]}]]],["p-ab651070",[[6,"swc-stepper-item",{"index":[2],"isLastItem":[4,"is-last-item"],"activeIndex":[2,"active-index"],"orientation":[1],"withCheckmark":[4,"with-checkmark"],"lineSize":[1,"line-size"],"idProp":[1,"id-prop"],"computedStatus":[32]}]]],["p-ebff2546",[[2,"swc-tags-input",{"value":[16],"max":[2],"placeholder":[1],"disabled":[4],"hasError":[4,"has-error"],"newTag":[32],"isFocused":[32],"focusedTagIndex":[32],"tags":[32]},null,{"value":["valueChangeHandler"],"tags":["tagsChangeHandler"]}]]],["p-096539c0",[[2,"swc-radio-input",{"value":[513],"selectedValue":[513,"selected-value"],"disabled":[516],"error":[516],"checked":[516],"label":[1]}]]],["p-15f3f20f",[[2,"swc-skeleton",{"round":[4],"size":[1],"height":[1],"width":[1],"borderRadius":[1,"border-radius"]}]]],["p-8b4b826d",[[6,"swc-stepper",{"orientation":[1],"activeIndex":[2,"active-index"],"withCheckmark":[4,"with-checkmark"],"lineSize":[1,"line-size"],"stepItemIds":[32]}]]],["p-2000af03",[[4,"swc-table-footer"]]],["p-f687fd8c",[[2,"app-playground",{"isCollapsed":[32],"isModalOpen":[32],"selectedOption":[32],"on":[32]}],[0,"swc-sidebar-test",{"isSidebarCollapsed":[32],"module":[32],"activeRoute":[32],"userDetails":[32],"modules":[32],"resourcesLinks":[32],"guideLinks":[32]}],[2,"swc-pagination-test",{"meta":[32]}],[6,"swc-select",{"value":[8],"options":[16],"placeholder":[513],"searchable":[516],"loading":[516],"width":[513],"maxHeight":[513,"max-height"],"clearable":[516],"flip":[516],"multiple":[4],"showCheckbox":[516,"show-checkbox"],"derivedOptions":[32],"shouldGroupSelections":[32],"searchQueryVal":[32]},null,{"searchQueryVal":["searchQueryHandler"]}],[6,"swc-breadcrumb-dropdown"],[4,"swc-table-head",{"label":[1],"sortable":[4],"isActive":[4,"is-active"],"state":[32]},null,{"isActive":["isActiveWatchHandler"]}],[6,"swc-dialog",{"isModalOpen":[4,"is-modal-open"],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"initialFocusRef":[16,"initial-focus-ref"],"size":[1],"width":[1],"hasCloseIcon":[4,"has-close-icon"],"animation":[1],"headerId":[32]}],[6,"swc-accordion-item",{"value":[1],"defaultValue":[1,"default-value"],"AccordionHeaderClass":[513,"accordion-header-class"],"AllowMultiple":[516,"allow-multiple"],"variant":[513],"ActiveIdsProp":[16,"active-ids-prop"],"hasRadioButton":[4,"has-radio-button"],"hasLeftBorder":[4,"has-left-border"],"reloadComp":[32]}],[2,"swc-avatar-group",{"size":[1],"shape":[1],"avatarGroupItems":[16,"avatar-group-items"]}],[4,"swc-navigation-menu-trigger",{"hover":[32]}],[6,"swc-accordion",{"variant":[513],"allowMultiple":[516,"allow-multiple"],"defaultValue":[1,"default-value"],"hasRadioButton":[4,"has-radio-button"],"hasLeftBorder":[4,"has-left-border"],"activeIds":[32]}],[6,"swc-badge",{"variant":[1],"intent":[1],"size":[1],"isCounter":[4,"is-counter"],"badgeClasses":[32]},null,{"variant":["watchProps"],"intent":["watchProps"],"size":["watchProps"],"isCounter":["watchProps"]}],[6,"swc-breadcrumb",{"separator":[513]}],[6,"swc-breadcrumb-item",{"isCurrentPage":[516,"is-current-page"],"separator":[1]}],[0,"swc-circular-progress",{"value":[2],"color":[1],"showValue":[4,"show-value"],"max":[2],"size":[1],"progression":[32]},null,{"value":["animateProgression"]}],[4,"swc-clickable",{"as":[1],"disabled":[4]}],[6,"swc-divider",{"orientation":[1],"hasContent":[32]}],[4,"swc-navigation-menu"],[4,"swc-navigation-menu-item",{"position":[1],"showArrow":[4,"show-arrow"]}],[4,"swc-popover",{"content":[1],"showArrow":[4,"show-arrow"],"showContent":[4,"show-content"],"position":[1]}],[6,"swc-status-badge",{"variant":[1],"intent":[1]},null,{"variant":["validateVariant"],"intent":["validateIntent"]}],[6,"swc-tab-content",{"value":[1],"activeTab":[1,"active-tab"],"idProp":[513,"id"],"tabTriggerIds":[16,"tab-trigger-ids"]}],[6,"swc-tab-list",{"orientation":[1],"variant":[1]}],[6,"swc-tab-trigger",{"value":[1],"disabled":[4],"activeTab":[1,"active-tab"],"orientation":[1],"variant":[1],"size":[1],"idProp":[513,"id"],"tabContentIds":[16,"tab-content-ids"],"tabClass":[1,"tab-class"]}],[4,"swc-table",{"rounded":[4],"maxHeight":[1,"max-height"],"hasStickyHeader":[4,"has-sticky-header"]}],[4,"swc-table-body"],[4,"swc-table-cell"],[4,"swc-table-header",{"hasStickyHeader":[4,"has-sticky-header"]}],[4,"swc-table-row"],[6,"swc-tabs",{"defaultTab":[1,"default-tab"],"variant":[1],"orientation":[1],"size":[1],"activeTab":[32],"tabTriggerIds":[32],"tabContentIds":[32],"tabClass":[32]},[[0,"updateActiveTab","handleUpdateActiveTab"]]],[2,"swc-textarea",{"variant":[1],"hasError":[4,"has-error"],"disabled":[4],"containerClass":[1,"container-class"],"value":[1],"handleChange":[16,"handle-change"]}],[2,"swc-pagination",{"meta":[8],"limits":[16],"isSolid":[4,"is-solid"],"type":[1],"metaClone":[32],"firstPage":[32],"isPerPageFromDB":[32],"defaultPerPage":[32],"isCurrentPageSetFromInput":[32]}],[6,"swc-multi-select",{"selectedOptions":[16,"selected-options"],"originalOptions":[16,"original-options"],"filteredOptions":[16,"filtered-options"],"placeholder":[513],"searchable":[516],"loading":[516],"width":[513],"maxHeight":[513,"max-height"],"clearable":[516],"flip":[516],"usingFooterSlot":[4,"using-footer-slot"],"multiple":[4],"showCheckbox":[516,"show-checkbox"],"isAllSelected":[32],"shouldGroupSelections":[32],"isOpen":[32]},null,{"isAllSelected":["isAllSelectedHandler"],"shouldGroupSelections":["groupSelectionHandler"],"selectedOptions":["selectedOptionsHandler"]}],[2,"swc-sidebar-header",{"module":[1],"modulesList":[16,"modules-list"],"canSwitchModules":[4,"can-switch-modules"],"isCurrentModule":[64]}],[6,"swc-single-select",{"selectedOption":[16,"selected-option"],"options":[16],"placeholder":[513],"searchable":[516],"loading":[516],"width":[1],"maxHeight":[513,"max-height"],"clearable":[516],"flip":[516],"multiple":[4],"showCheckbox":[516,"show-checkbox"],"isOpen":[32]},[[0,"closeDropdown","closeDropdownMenu"]]],[6,"swc-sidebar-footer",{"userDetails":[16,"user-details"],"viewingMoreOptions":[32]},null,{"collapsed":["handleCollapsedChange"]}],[6,"swc-sidebar-option",{"hasSections":[4,"has-sections"],"isSubsection":[4,"is-subsection"],"title":[1],"isActive":[4,"is-active"],"level":[2],"iconName":[1,"icon-name"],"iconVariant":[1,"icon-variant"],"optionId":[1,"option-id"],"showDropdown":[32],"childHeight":[32]},[[0,"storeChange","handleStoreChange"],[4,"sidebar-collapsed","handleSidebarCollapsed"]]],[6,"swc-sidebar",{"top":[1]},null,{"top":["topChanged"]}],[6,"swc-sidebar-body"],[2,"swc-pagination-button-list",{"currentPage":[2,"current-page"],"numberOfPages":[2,"number-of-pages"],"lastPage":[2,"last-page"],"maxButtonCount":[32],"buttonsBeforeEllipsis":[32],"buttonsAfterEllipsis":[32]}],[2,"swc-pagination-input",{"value":[1],"dropdownValues":[16,"dropdown-values"]}],[2,"swc-switch",{"disabled":[516],"checked":[1540],"color":[1],"label":[1]}],[6,"swc-modal-root",{"isModalOpen":[4,"is-modal-open"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"closeOnEsc":[4,"close-on-esc"],"initialFocusRef":[16,"initial-focus-ref"]},null,{"isModalOpen":["handleOpenChange"]}],[4,"swc-tooltip",{"content":[1],"showArrow":[4,"show-arrow"],"showContent":[4,"show-content"],"interactive":[4],"variant":[1],"position":[1],"tooltipId":[32]}],[2,"swc-option",{"disabled":[516],"value":[520],"label":[513],"SelectedOptions":[16,"selected-options"]}],[2,"swc-pagination-button",{"number":[2],"currentPage":[2,"current-page"]}],[2,"swc-avatar",{"src":[513],"alt":[513],"size":[513],"status":[513],"initials":[1],"shape":[1],"hasImageLoaded":[32]}],[2,"swc-progress",{"value":[1026],"max":[2],"color":[1],"showValue":[4,"show-value"]},null,{"value":["validateValue"]}],[6,"swc-label",{"required":[4],"disabled":[4],"size":[1],"emphasis":[1],"captionPlacement":[1,"caption-placement"],"showLabelIcon":[4,"show-label-icon"],"for":[1]}],[6,"swc-dropdown-trigger",{"width":[1],"size":[513],"showDropdownIcon":[516,"show-dropdown-icon"],"customClass":[1,"custom-class"]}],[4,"swc-dropdown",{"isSubMenu":[516,"is-sub-menu"],"position":[513],"flip":[516],"isExpanded":[32]},null,{"isExpanded":["isExpandedHandler"]}],[6,"swc-list",{"width":[1],"selection":[16],"options":[16],"searchable":[516],"placeholder":[513],"loading":[516],"maxHeight":[513,"max-height"],"customClass":[513,"custom-class"],"hoveredItem":[32],"searchQueryValue":[32]},[[0,"change","handleInputEventChange"]]],[2,"swc-loader",{"size":[1]}],[6,"swc-icon-button",{"disabled":[4],"size":[1],"intent":[1],"variant":[1],"arialLabel":[1,"arial-label"],"round":[4]}],[6,"swc-input",{"variant":[1],"clearable":[4],"hasError":[4,"has-error"],"disabled":[4],"containerClass":[1,"container-class"],"value":[1],"handleInputChange":[16,"handle-input-change"],"placeholder":[1],"type":[1]}],[6,"swc-list-item",{"selected":[4],"disabled":[4],"hideOnClick":[4,"hide-on-click"]}],[6,"swc-button",{"intent":[513],"variant":[513],"size":[513],"width":[1],"disabled":[4],"type":[513],"round":[4],"isIcon":[4,"is-icon"],"customClass":[1,"custom-class"]}],[2,"swc-svg-icon",{"name":[513],"variant":[513],"size":[513],"color":[513],"opacity":[513],"titleProp":[513,"title"]}]]],["p-0a8a7047",[[2,"swc-tour-guide-step",{"heading":[1],"content":[1],"dismissible":[4],"hasPrevious":[4,"has-previous"],"hasNext":[4,"has-next"],"isLastStep":[4,"is-last-step"],"currentIndex":[2,"current-index"],"numberOfSteps":[2,"number-of-steps"],"startTour":[4,"start-tour"],"variant":[1]}]]],["p-a1f5a646",[[2,"swc-checkbox",{"value":[513],"checked":[1540],"error":[4],"disabled":[516],"falseValue":[513,"false-value"],"label":[513],"isIndeterminate":[4,"is-indeterminate"]}]]],["p-0fbe37fb",[[6,"swc-tag",{"instanceId":[2,"instance-id"],"dismissible":[4]}]]],["p-2b6aa70d",[[2,"swc-multiple-file",{"fileInfo":[16,"file-info"],"inverted":[516],"hasError":[516,"has-error"],"progress":[514],"uniqueId":[513,"unique-id"]}],[2,"swc-single-file",{"fileInfo":[16,"file-info"],"extended":[516],"thumbnail":[513],"inverted":[516],"hasError":[516,"has-error"],"progress":[514],"uniqueId":[513,"unique-id"]}]]]]'),e)}));
|
|
2
|
+
//# sourceMappingURL=wc-lib.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wc-lib.esm.js","sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.30.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
|
package/wc-lib/wc-lib.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
(function() {
|
|
3
|
+
function checkSupport() {
|
|
4
|
+
if (!document.body) {
|
|
5
|
+
setTimeout(checkSupport);
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
function supportsDynamicImports() {
|
|
9
|
+
try {
|
|
10
|
+
new Function('import("")');
|
|
11
|
+
return true;
|
|
12
|
+
} catch (e) {}
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
var supportsEsModules = !!('noModule' in document.createElement('script'));
|
|
16
|
+
|
|
17
|
+
if (!supportsEsModules) {
|
|
18
|
+
document.body.innerHTML = '\n \n<style>\nbody {\n display: block !important;\n font-family: sans-serif;\n padding: 20px;\n line-height:22px;\n}\nh1 {\n font-size: 18px;\n}\nh2 {\n font-size: 14px;\n margin-top: 40px;\n}\n</style>\n\n\n <h1>This Stencil app is disabled for this browser.</h1>\n\n <h2>Developers:</h2>\n <ul>\n <li>ES5 builds are disabled <strong>during development</strong> to take advantage of 2x faster build times.</li>\n <li>Please see the example below or our <a href="https://stenciljs.com/docs/stencil-config" target="_blank" rel="noopener noreferrer">config docs</a> if you would like to develop on a browser that does not fully support ES2017 and custom elements.</li>\n <li>Note that as of Stencil v2, ES5 builds and polyfills are <strong>disabled</strong> during production builds. You can enable these <a href="https://stenciljs.com/docs/config#buildes5" target="_blank" rel="noopener noreferrer">in your stencil.config.ts file</a>.</li>\n <li>When testing browsers it is recommended to always test in production mode, and ES5 builds should always be enabled during production builds.</li>\n <li><em>This is only an experiment and if it slows down app development then we will revert this and enable ES5 builds during dev.</em></li>\n </ul>\n\n\n <h2>Enabling ES5 builds during development:</h2>\n <pre>\n <code>npm run dev --es5</code>\n </pre>\n <p>For stencil-component-starter, use:</p>\n <pre>\n <code>npm start --es5</code>\n </pre>\n\n\n <h2>Enabling full production builds during development:</h2>\n <pre>\n <code>npm run dev --prod</code>\n </pre>\n <p>For stencil-component-starter, use:</p>\n <pre>\n <code>npm start --prod</code>\n </pre>\n\n <h2>Current Browser\'s Support:</h2>\n <ul>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import">ES Module Imports</a>: <span id="es-modules-test"></span></li>\n <li><a href="http://2ality.com/2017/01/import-operator.html">ES Dynamic Imports</a>: <span id="es-dynamic-modules-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements">Custom Elements</a>: <span id="custom-elements-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM">Shadow DOM</a>: <span id="shadow-dom-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">fetch</a>: <span id="fetch-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables">CSS Variables</a>: <span id="css-variables-test"></span></li>\n </ul>\n\n <h2>Current Browser:</h2>\n <pre>\n <code id="current-browser-output"></code>\n </pre>\n';
|
|
19
|
+
|
|
20
|
+
document.getElementById('current-browser-output').textContent = window.navigator.userAgent;
|
|
21
|
+
document.getElementById('es-modules-test').textContent = supportsEsModules;
|
|
22
|
+
document.getElementById('es-dynamic-modules-test').textContent = supportsDynamicImports();
|
|
23
|
+
document.getElementById('shadow-dom-test').textContent = !!(document.head.attachShadow);
|
|
24
|
+
document.getElementById('custom-elements-test').textContent = !!(window.customElements);
|
|
25
|
+
document.getElementById('css-variables-test').textContent = !!(window.CSS && window.CSS.supports && window.CSS.supports('color', 'var(--c)'));
|
|
26
|
+
document.getElementById('fetch-test').textContent = !!(window.fetch);
|
|
27
|
+
} else {
|
|
28
|
+
document.body.innerHTML = '\n \n<style>\nbody {\n display: block !important;\n font-family: sans-serif;\n padding: 20px;\n line-height:22px;\n}\nh1 {\n font-size: 18px;\n}\nh2 {\n font-size: 14px;\n margin-top: 40px;\n}\n</style>\n\n\n <h1>Update src/index.html</h1>\n\n <p>Stencil recently changed how scripts are loaded in order to improve performance.</p>\n\n <h2>BEFORE:</h2>\n <p>Previously, a single script was included that handled loading the correct JavaScript based on browser support.</p>\n <pre>\n <code><script src="/build/wc-lib.js"></script>\n</code>\n </pre>\n\n <h2 style="margin-top:0">AFTER:</h2>\n <p>The index.html should now include two scripts using the modern ES Module script pattern.\n Note that only one file will actually be requested and loaded based on the browser\'s native support for ES Modules.\n For more info, please see <a href="https://developers.google.com/web/fundamentals/primers/modules#browser" target="_blank" rel="noopener noreferrer">Using JavaScript modules on the web</a>.\n </p>\n <pre>\n <code><script <span style="background:yellow">type="module"</span> src="/build/wc-lib<span style="background:yellow">.esm</span>.js"></script>\n <script <span style="background:yellow">nomodule</span> src="/build/wc-lib.js"></script></code>\n </pre>\n';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
setTimeout(checkSupport);
|
|
33
|
+
})();
|