@pod-os/elements 0.2.1-60906c0.0 → 0.2.1-aa2e408.0
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/dist/cjs/ion-app_37.cjs.entry.js +1 -1
- package/dist/collection/components/pos-image/pos-image.css +9 -0
- package/dist/collection/components/pos-picture/pos-picture.css +5 -0
- package/dist/custom-elements/index.js +1 -1
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/{p-2290d6e8.entry.js → p-500252e3.entry.js} +1 -1
- package/dist/esm/ion-app_37.entry.js +1 -1
- package/package.json +1 -1
|
@@ -40001,7 +40001,7 @@ function iconForStatus(status) {
|
|
|
40001
40001
|
}
|
|
40002
40002
|
}
|
|
40003
40003
|
|
|
40004
|
-
const posImageCss = "img,ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height)}.error{display:flex;opacity:0.8;background:repeating-linear-gradient( -45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px );flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);font-size:calc(var(--width) / 2)}a{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}";
|
|
40004
|
+
const posImageCss = ":host{}img,ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height)}.error{display:flex;opacity:0.8;background:repeating-linear-gradient( -45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px );flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);font-size:calc(var(--width) / 2)}a{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}";
|
|
40005
40005
|
|
|
40006
40006
|
const PosImage = class {
|
|
40007
40007
|
constructor(hostRef) {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
:host {
|
|
3
|
+
/**
|
|
4
|
+
* @prop --width: Width of the image
|
|
5
|
+
* @prop --height: Height of the image
|
|
6
|
+
* @prop --border-radius: Border radius of the image
|
|
7
|
+
*/
|
|
8
|
+
}
|
|
9
|
+
|
|
1
10
|
img, ion-skeleton-text, div.error {
|
|
2
11
|
border-radius: var(--border-radius);
|
|
3
12
|
width: var(--width);
|
|
@@ -56386,7 +56386,7 @@ function iconForStatus(status) {
|
|
|
56386
56386
|
}
|
|
56387
56387
|
}
|
|
56388
56388
|
|
|
56389
|
-
const posImageCss = "img,ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height)}.error{display:flex;opacity:0.8;background:repeating-linear-gradient( -45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px );flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);font-size:calc(var(--width) / 2)}a{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}";
|
|
56389
|
+
const posImageCss = ":host{}img,ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height)}.error{display:flex;opacity:0.8;background:repeating-linear-gradient( -45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px );flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);font-size:calc(var(--width) / 2)}a{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}";
|
|
56390
56390
|
|
|
56391
56391
|
const PosImage$1 = class extends HTMLElement$1 {
|
|
56392
56392
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-a712c2f6.js";import{g as t}from"./p-92a0735b.js";import"./p-8d1d6062.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>(t(),o(JSON.parse('[["p-2290d6e8",[[0,"pos-demo-app"],[0,"pos-router",{"uri":[32]},[[0,"pod-os:link","linkClicked"]]],[0,"pos-login",{"os":[32]}],[4,"pos-app",{"os":[32]},[[0,"pod-os:init","initializeOs"]]],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[33,"ion-title",{"color":[513],"size":[1]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[0,"pos-app-generic"],[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[0,"ion-app"],[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}],[1,"pos-literals",{"data":[32]}],[1,"pos-picture",{"resource":[32]}],[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-title",{"color":[513]}],[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"],[1,"pos-image",{"src":[1],"os":[32],"dataUri":[32],"brokenFile":[32],"error":[32],"loading":[32]}],[1,"pos-rich-link",{"uri":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"pos-description",{"resource":[32]}],[1,"pos-resource",{"uri":[1],"lazy":[4],"os":[32],"resource":[32],"consumers":[32],"error":[32],"loading":[32],"fetch":[64]},[[0,"pod-os:resource","provideResource"]]],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[1,"pos-label",{"resource":[32]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}],[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["p-c6dbdd06",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]]]],["p-0addb25c",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-8b372444",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["p-70f5d1c1",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["p-d82c8102",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}]]],["p-cf79afd2",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-0452fb27",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-9b2ff01b",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}]]],["p-3e6db2fa",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}]]],["p-22fc3a24",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-b4ab884c",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["p-bcc3c37c",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}]]],["p-8d8e018a",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}]]],["p-ca395368",[[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]]]],["p-8aaf51be",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-10e4ca40",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-b7cd6fef",[[33,"ion-reorder",null,[[2,"click","onClick"]]]]],["p-d6012b74",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["p-9a05c749",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}]]],["p-025c9a9b",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]]]],["p-5628f80d",[[33,"ion-avatar"]]],["p-671b4546",[[33,"ion-badge",{"color":[513]}]]],["p-03cde843",[[34,"ion-buttons",{"collapse":[4]}]]],["p-66bbe62d",[[33,"ion-card-subtitle",{"color":[513]}]]],["p-2145cf89",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["p-a0ee39e8",[[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}]]],["p-da1d4d15",[[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}]]],["p-17758df3",[[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["p-a08b2157",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["p-6e905d35",[[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["p-bf5cd642",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["p-99837f0d",[[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}]]],["p-57f7c0c2",[[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["p-12094a99",[[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-c8663562",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}]]],["p-a5b00718",[[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["p-58625104",[[33,"ion-note",{"color":[513]}]]],["p-1d8e7db1",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["p-f4120adc",[[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["p-8544ef1b",[[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["p-c94f01cf",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}]]],["p-c7feb66f",[[0,"ion-route-redirect",{"from":[1],"to":[1]}]]],["p-c3e16816",[[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]]]],["p-3a26e7e5",[[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["p-f91f59f9",[[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-90ab8eff",[[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["p-4b8b50f2",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}]]],["p-46221508",[[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["p-f35bc63b",[[0,"ion-slide"]]],["p-30ceacb9",[[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["p-d9570980",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["p-856e2a7d",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}]]],["p-51c7cb3f",[[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["p-b04936a5",[[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-7010f947",[[1,"ion-text",{"color":[513]}]]],["p-e8b8da88",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["p-d4ac974f",[[1,"ion-thumbnail"]]],["p-80adc18b",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["p-c96b5885",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["p-611d40b2",[[0,"test-component"]]],["p-78cd25d1",[[32,"ion-picker-column",{"col":[16]}]]],["p-1f6a9d65",[[33,"ion-list-header",{"color":[513],"lines":[1]}],[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["p-387aff19",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["p-0931b188",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]]]'),e))));
|
|
1
|
+
import{p as e,b as o}from"./p-a712c2f6.js";import{g as t}from"./p-92a0735b.js";import"./p-8d1d6062.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>(t(),o(JSON.parse('[["p-500252e3",[[0,"pos-demo-app"],[0,"pos-router",{"uri":[32]},[[0,"pod-os:link","linkClicked"]]],[0,"pos-login",{"os":[32]}],[4,"pos-app",{"os":[32]},[[0,"pod-os:init","initializeOs"]]],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[33,"ion-title",{"color":[513],"size":[1]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[0,"pos-app-generic"],[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[0,"ion-app"],[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}],[1,"pos-literals",{"data":[32]}],[1,"pos-picture",{"resource":[32]}],[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-title",{"color":[513]}],[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"],[1,"pos-image",{"src":[1],"os":[32],"dataUri":[32],"brokenFile":[32],"error":[32],"loading":[32]}],[1,"pos-rich-link",{"uri":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"pos-description",{"resource":[32]}],[1,"pos-resource",{"uri":[1],"lazy":[4],"os":[32],"resource":[32],"consumers":[32],"error":[32],"loading":[32],"fetch":[64]},[[0,"pod-os:resource","provideResource"]]],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[1,"pos-label",{"resource":[32]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}],[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["p-c6dbdd06",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]]]],["p-0addb25c",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-8b372444",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["p-70f5d1c1",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["p-d82c8102",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}]]],["p-cf79afd2",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-0452fb27",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-9b2ff01b",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}]]],["p-3e6db2fa",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}]]],["p-22fc3a24",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-b4ab884c",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["p-bcc3c37c",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}]]],["p-8d8e018a",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}]]],["p-ca395368",[[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]]]],["p-8aaf51be",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-10e4ca40",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-b7cd6fef",[[33,"ion-reorder",null,[[2,"click","onClick"]]]]],["p-d6012b74",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["p-9a05c749",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}]]],["p-025c9a9b",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]]]],["p-5628f80d",[[33,"ion-avatar"]]],["p-671b4546",[[33,"ion-badge",{"color":[513]}]]],["p-03cde843",[[34,"ion-buttons",{"collapse":[4]}]]],["p-66bbe62d",[[33,"ion-card-subtitle",{"color":[513]}]]],["p-2145cf89",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["p-a0ee39e8",[[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}]]],["p-da1d4d15",[[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}]]],["p-17758df3",[[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["p-a08b2157",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["p-6e905d35",[[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["p-bf5cd642",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["p-99837f0d",[[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}]]],["p-57f7c0c2",[[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["p-12094a99",[[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-c8663562",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}]]],["p-a5b00718",[[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["p-58625104",[[33,"ion-note",{"color":[513]}]]],["p-1d8e7db1",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["p-f4120adc",[[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["p-8544ef1b",[[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["p-c94f01cf",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}]]],["p-c7feb66f",[[0,"ion-route-redirect",{"from":[1],"to":[1]}]]],["p-c3e16816",[[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]]]],["p-3a26e7e5",[[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["p-f91f59f9",[[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-90ab8eff",[[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["p-4b8b50f2",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}]]],["p-46221508",[[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["p-f35bc63b",[[0,"ion-slide"]]],["p-30ceacb9",[[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["p-d9570980",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["p-856e2a7d",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}]]],["p-51c7cb3f",[[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["p-b04936a5",[[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-7010f947",[[1,"ion-text",{"color":[513]}]]],["p-e8b8da88",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["p-d4ac974f",[[1,"ion-thumbnail"]]],["p-80adc18b",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["p-c96b5885",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["p-611d40b2",[[0,"test-component"]]],["p-78cd25d1",[[32,"ion-picker-column",{"col":[16]}]]],["p-1f6a9d65",[[33,"ion-list-header",{"color":[513],"lines":[1]}],[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["p-387aff19",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["p-0931b188",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]]]'),e))));
|
|
@@ -58,4 +58,4 @@ import{r as t,h as e,H as n,a as i,c as r,f as o,d as s,w as a,e as u,i as c}fro
|
|
|
58
58
|
// disallow aliasing @context and @preserve
|
|
59
59
|
// remove @preserve
|
|
60
60
|
// remove @preserve from results
|
|
61
|
-
const nf=()=>new class{constructor(){this.session=new class{get authenticatedFetch(){return this._authenticatedFetch}constructor(){this.session=new Ka.Session,this._authenticatedFetch=this.session.fetch}handleIncomingRedirect(){return qt(this,null,(function*(){return this.session.handleIncomingRedirect({restorePreviousSession:!1})}))}login(t){return qt(this,null,(function*(){return this.session.login({oidcIssuer:t,redirectUrl:window.location.href,clientName:`Pod OS at ${window.location.host}`})}))}logout(){return qt(this,null,(function*(){return this.session.logout()}))}trackSession(t){this.session.onLogin((()=>t(this.session.info))),this.session.onLogout((()=>t(this.session.info))),this.session.onSessionRestore((()=>t(this.session.info))),t(this.session.info)}},this.store=new class{constructor(t){this.graph=Zd(),this.fetcher=Yd(this.graph,{fetch:t.authenticatedFetch})}fetch(t){return this.fetcher.load(Qd(t),{force:!0})}get(t){return new class{constructor(t,e){this.uri=t,this.store=e}label(){const t=this.anyValue("http://www.w3.org/2006/vcard/ns#fn","http://xmlns.com/foaf/0.1/name","http://xmlns.com/foaf/0.1/nick","https://schema.org/name","http://schema.org/name","http://purl.org/dc/terms/title","http://purl.org/dc/elements/1.1/title","http://www.w3.org/2000/01/rdf-schema#label","https://www.w3.org/ns/activitystreams#name","http://schema.org/caption","https://schema.org/caption");return null!=t?t:this.uri}literals(){const t=this.store.statementsMatching(Qd(this.uri)).filter((t=>lu(t.object))).reduce(ef,{});return Object.keys(t).map((e=>({predicate:e,values:t[e]})))}relations(){const t=this.store.statementsMatching(Qd(this.uri)).filter((t=>du(t.object))).reduce(ef,{});return Object.keys(t).map((e=>({predicate:e,uris:t[e]})))}reverseRelations(){const t=this.store.statementsMatching(void 0,void 0,Qd(this.uri)).reduce(tf,{});return Object.keys(t).map((e=>({predicate:e,uris:t[e]})))}anyValue(...t){let e;return t.some((t=>(e=this.store.anyValue(Qd(this.uri),Qd(t)),Boolean(e)))),e}description(){return this.anyValue("http://purl.org/dc/terms/description","http://purl.org/dc/elements/1.1/description","http://schema.org/description","https://schema.org/description","https://schema.org/text","http://www.w3.org/2000/01/rdf-schema#comment","https://www.w3.org/ns/activitystreams#summary","https://www.w3.org/ns/activitystreams#content","http://www.w3.org/2006/vcard/ns#note")}picture(){const t=this.anyValue("http://schema.org/image","https://schema.org/image","http://schema.org/logo","https://schema.org/logo","http://www.w3.org/2006/vcard/ns#hasPhoto","http://www.w3.org/2006/vcard/ns#photo","http://www.w3.org/2006/vcard/ns#hasLogo","http://www.w3.org/2006/vcard/ns#logo","http://xmlns.com/foaf/0.1/img","http://xmlns.com/foaf/0.1/depiction","http://xmlns.com/foaf/0.1/thumbnail");return t?{url:t}:this.findActivityStreamsPicture()}findActivityStreamsPicture(){const t=this.store.any(Qd(this.uri),Qd("https://www.w3.org/ns/activitystreams#image"))||this.store.any(Qd(this.uri),Qd("https://www.w3.org/ns/activitystreams#icon"));if(!(t&&(e=t,cu(e)&&"termType"in e&&"BlankNode"===e.termType||du(t))))return null;var e;const n=this.store.anyValue(t,Qd("https://www.w3.org/ns/activitystreams#url"));return n?{url:n}:null}}(t,this.graph)}}(this.session),this.fileFetcher=new class{constructor(t){this.session=t}fetchFile(t){return qt(this,null,(function*(){const e=yield this.session.authenticatedFetch(t);if(e.ok){const n=yield e.blob();return new class{constructor(t,e){this.url=t,this.data=e}blob(){return this.data}}(t,n)}return new class{constructor(t,e){this.url=t,this.status=e}toString(){return`${this.status.toString()} - ${this.url}`}blob(){return null}}(t,new class{constructor(t,e){this.code=t,this.text=e}toString(){return this.text?`${this.code} - ${this.text}`:this.code.toString()}}(e.status,e.statusText))}))}}(this.session)}handleIncomingRedirect(){this.session.handleIncomingRedirect()}fetch(t){return this.store.fetch(t)}fetchFile(t){return this.fileFetcher.fetchFile(t)}trackSession(t){return this.session.trackSession(t)}logout(){return this.session.logout()}login(t="http://localhost:3000"){return this.session.login(t)}},rf=class{constructor(e){t(this,e)}componentWillLoad(){this.os=nf(),this.os.handleIncomingRedirect(),this.os.trackSession((t=>{xt.state.isLoggedIn=t.isLoggedIn,xt.state.webId=t.webId}))}async initializeOs(t){t.stopPropagation(),t.detail(this.os)}render(){return e("ion-app",null,e("slot",null))}},of=class{constructor(e){t(this,e)}render(){return e("ion-grid",null,e("ion-row",null,e("ion-col",{size:"12","size-sm":!0},e("ion-card",null,e("ion-card-header",null,e("pos-picture",null),e("ion-card-title",null,e("pos-label",null))),e("ion-card-content",null,e("pos-description",null)))),e("ion-col",{size:"12","size-sm":!0},e("pos-literals",null)),e("ion-col",{size:"12","size-sm":!0},e("pos-relations",null),e("pos-reverse-relations",null))))}},sf=class{constructor(e){t(this,e)}render(){return e("pos-app",null,e("ion-header",null,e("ion-toolbar",null,e("ion-title",{slot:"start"},"pod os"),e("pos-login",null))),e("ion-content",null,e("pos-router",null)),e("ion-footer",null,e("ion-toolbar",null,e("ion-title",null,"Footer"))))}},af=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.setResource=async t=>{this.resource=t}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){return this.resource?this.resource.description():null}},uf=({file:t})=>{const n=function(t){switch(t.code){case 401:case 403:return"lock-closed-outline";case 404:return"help-circle-outline";default:return"alert-circle-outline"}}(t.status);return e("div",null,e("a",{class:"error",href:t.url},e("div",null,e("ion-icon",{name:n})),e("div",{class:"code"},t.status.code),e("div",{class:"text"},t.status.text)))},cf=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.loading=!0,this.setOs=async t=>{this.os=t}}componentWillLoad(){xt.onChange("isLoggedIn",(()=>this.fetchBlob())),this.initializeOsEmitter.emit(this.setOs)}async fetchBlob(){try{this.loading=!0;const t=await this.os.fetchFile(this.src);t.blob()?(this.dataUri=URL.createObjectURL(t.blob()),this.error=null):this.brokenFile=t}catch(t){this.error=t}finally{this.loading=!1}}render(){return this.loading?e("ion-skeleton-text",{animated:!0}):this.error?e("div",{class:"error"},this.error.message):this.brokenFile?e(uf,{file:this.brokenFile}):e("img",{src:this.dataUri})}static get watchers(){return{os:["fetchBlob"],src:["fetchBlob"]}}};cf.style="img,ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height)}.error{display:flex;opacity:0.8;background:repeating-linear-gradient( -45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px );flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);font-size:calc(var(--width) / 2)}a{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}";const lf=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.setResource=async t=>{this.resource=t}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){return this.resource?this.resource.label():null}},hf=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.data=[],this.setResource=async t=>{this.data=t.literals()}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,t.predicate)),t.values.map((t=>e("ion-item",null,e("ion-label",{class:"ion-text-wrap"},t)," "))))));return this.data.length>0?e("ion-list",null,t):null}},df=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.setOs=async t=>{this.os=t}}componentWillLoad(){this.initializeOsEmitter.emit(this.setOs)}login(){const t=xt.state.getIdpUrl();this.os.login(t)}logout(){this.os.logout()}render(){return e(n,null,xt.state.isLoggedIn?e("pos-resource",{uri:xt.state.webId},e("pos-label",null)):"",!xt.state.isLoggedIn&&e("ion-button",{onClick:()=>this.login()},"Login"),xt.state.isLoggedIn&&e("ion-button",{onClick:()=>this.logout()},"Logout"))}},ff=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.setResource=async t=>{this.resource=t}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){const t=this.resource?this.resource.picture():null;return t?e("pos-image",{src:t.url}):null}};ff.style=":host{--width:300px;--height:300px;--border-radius:var(--border-radius, 0)}";const pf=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.data=[],this.setResource=async t=>{this.data=t.relations()}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,t.predicate)),t.uris.map((t=>e("pos-rich-link",{uri:t}))))));return this.data.length>0?e("ion-list",null,t):null}},vf=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.consumers=[],this.lazy=!1,this.loading=!0,this.setOs=async t=>{this.os=t}}componentWillLoad(){xt.onChange("isLoggedIn",(()=>this.loadResource())),this.initializeOsEmitter.emit(this.setOs)}async provideResource(t){t.stopPropagation(),this.resource&&t.detail(this.resource),this.consumers.push(t)}async loadResource(){await this.getResource(!this.lazy)}async fetch(){await this.getResource(!0)}async getResource(t=!1){try{t&&(this.loading=!0,await this.os.fetch(this.uri)),this.resource=this.os.store.get(this.uri),this.error=null,this.consumers.forEach((t=>{t.detail(this.resource)}))}catch(t){this.error=t}finally{this.loading=!1}}render(){return this.loading?e("ion-progress-bar",{type:"indeterminate"}):this.error?e("div",null,this.error.message):e("slot",null)}static get watchers(){return{os:["loadResource"],uri:["loadResource"]}}},gf=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.data=[],this.setResource=async t=>{this.data=t.reverseRelations()}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,"is ",t.predicate," of")),t.uris.map((t=>e("pos-rich-link",{uri:t}))))));return this.data.length>0?e("ion-list",null,t):null}},mf=class{constructor(e){t(this,e),this.linkEmitter=r(this,"pod-os:link",7)}render(){return e("pos-resource",{lazy:!0,uri:this.uri},e("ion-item",{href:this.uri,onClick:t=>{t.preventDefault(),this.linkEmitter.emit(this.uri)}},e("ion-label",null,e("h2",null,e("pos-label",null)),e("p",null,e("ion-label",{style:{maxWidth:"50rem"}},e("pos-description",null))),e("p",null,e("a",{href:this.uri},this.uri)))))}},wf=(t,e)=>{var n;return"to"in t?{path:t.path,to:t.to}:{path:t.path,id:t.id,jsx:null!==(n=t.render)&&void 0!==n?n:e}},bf=(t,e)=>{if("string"==typeof e){if(e===t)return{}}else if("function"==typeof e){const n=e(t);if(n)return!0===n?{}:{...n}}else{const n=e.exec(t);if(n)return e.lastIndex=0,{...n}}},yf=t=>t.pathname.toLowerCase(),xf=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),kf=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),Ef=t=>t.replace(/([=!:$/()])/g,"\\$1"),Sf=t=>t&&t.sensitive?"":"i",Ff=(t,e,n)=>{for(var i=(n=n||{}).strict,r=!1!==n.end,o=kf(n.delimiter||"/"),s=n.delimiters||"./",a=[].concat(n.endsWith||[]).map(kf).concat("$").join("|"),u="",c=!1,l=0;l<t.length;l++){var h=t[l];if("string"==typeof h)u+=kf(h),c=l===t.length-1&&s.indexOf(h[h.length-1])>-1;else{var d=kf(h.prefix||""),f=h.repeat?"(?:"+h.pattern+")(?:"+d+"(?:"+h.pattern+"))*":h.pattern;e&&e.push(h),u+=h.optional?h.partial?d+"("+f+")?":"(?:"+d+"("+f+"))?":d+"("+f+")"}}return r?(i||(u+="(?:"+o+")?"),u+="$"===a?"$":"(?="+a+")"):(i||(u+="(?:"+o+"(?="+a+"))?"),c||(u+="(?="+o+"|"+a+")")),new RegExp("^"+u,Sf(n))},Af=(t,e,n)=>t instanceof RegExp?((t,e)=>{if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,e):Array.isArray(t)?((t,e,n)=>{for(var i=[],r=0;r<t.length;r++)i.push(Af(t[r],e,n).source);return new RegExp("(?:"+i.join("|")+")",Sf(n))})(t,e,n):((t,e,n)=>Ff(((t,e)=>{for(var n,i=[],r=0,o=0,s="",a=e&&e.delimiter||"/",u=e&&e.delimiters||"./",c=!1;null!==(n=xf.exec(t));){var l=n[0],h=n[1],d=n.index;if(s+=t.slice(o,d),o=d+l.length,h)s+=h[1],c=!0;else{var f="",p=t[o],v=n[2],g=n[3],m=n[4],w=n[5];if(!c&&s.length){var b=s.length-1;u.indexOf(s[b])>-1&&(f=s[b],s=s.slice(0,b))}s&&(i.push(s),s="",c=!1);var y=f||a,x=g||m;i.push({name:v||r++,prefix:f,delimiter:y,optional:"?"===w||"*"===w,repeat:"+"===w||"*"===w,partial:""!==f&&void 0!==p&&p!==f,pattern:x?Ef(x):"[^"+kf(y)+"]+?"})}}return(s||o<t.length)&&i.push(s+t.substr(o)),i})(t,n),e,n))(t,e,n);let _f=0;const jf={},Cf=(t,e={})=>{const{exact:n=!1,strict:i=!1}=e,{re:r,keys:o}=((t,e)=>{const n=`${e.end}${e.strict}`,i=jf[n]||(jf[n]={}),r=JSON.stringify(t);if(i[r])return i[r];const o=[],s={re:Af(t,o,e),keys:o};return _f<1e4&&(i[r]=s,_f+=1),s})(t,{end:n,strict:i});return t=>{const e=r.exec(t);if(!e)return;const[i,...s]=e;return n&&t!==i?void 0:o.reduce(((t,e,n)=>(t[e.name]=s[n],t)),{})}},Rf=(()=>{const t=window,e=new URL(t.location.href),n=(void 0,yf),{state:i,onChange:r,dispose:o}=yt({url:e,activePath:n(e)},((t,e,n)=>"url"===n?t.href!==e.href:t!==e)),s=t=>{history.pushState(null,null,t);const e=new URL(t,document.baseURI);i.url=e,i.activePath=n(e)},a=t=>{const{activePath:e}=i;for(let n of t){const i=bf(e,n.path);if(i){if(null!=n.to){const i="string"==typeof n.to?n.to:n.to(e);return s(i),a(t)}return{params:i,route:n}}}},u=()=>{const e=new URL(t.location.href);i.url=e,i.activePath=n(e)},c={Switch:(t,e)=>{const n=a(e);if(n)return"function"==typeof n.route.jsx?n.route.jsx(n.params):n.route.jsx},get url(){return i.url},get activePath(){return i.activePath},push:s,onChange:r,dispose:()=>{t.removeEventListener("popstate",u),o()}};return u(),t.addEventListener("popstate",u),c})(),If=class{constructor(e){t(this,e)}linkClicked(t){this.navigate(t.detail)}componentWillLoad(){this.updateUri(),Rf.onChange("url",(()=>{this.updateUri()}))}navigate(t){Rf.push("?uri="+encodeURIComponent(t))}updateUri(){this.uri=new URLSearchParams(window.location.search).get("uri")||window.location.href}render(){return console.log("render router",this.uri),e(Rf.Switch,null,e(wf,{path:Cf("",{exact:!1})},e("pos-resource",{key:this.uri,uri:this.uri},e("pos-app-generic",null))))}};export{y as ion_app,E as ion_button,S as ion_card,F as ion_card_content,A as ion_card_header,_ as ion_card_title,O as ion_col,N as ion_content,M as ion_footer,U as ion_grid,H as ion_header,Q as ion_icon,nt as ion_item,it as ion_item_divider,rt as ion_item_group,ot as ion_label,st as ion_list,at as ion_progress_bar,lt as ion_ripple_effect,pt as ion_row,vt as ion_skeleton_text,gt as ion_title,mt as ion_toolbar,rf as pos_app,of as pos_app_generic,sf as pos_demo_app,af as pos_description,cf as pos_image,lf as pos_label,hf as pos_literals,df as pos_login,ff as pos_picture,pf as pos_relations,vf as pos_resource,gf as pos_reverse_relations,mf as pos_rich_link,If as pos_router}
|
|
61
|
+
const nf=()=>new class{constructor(){this.session=new class{get authenticatedFetch(){return this._authenticatedFetch}constructor(){this.session=new Ka.Session,this._authenticatedFetch=this.session.fetch}handleIncomingRedirect(){return qt(this,null,(function*(){return this.session.handleIncomingRedirect({restorePreviousSession:!1})}))}login(t){return qt(this,null,(function*(){return this.session.login({oidcIssuer:t,redirectUrl:window.location.href,clientName:`Pod OS at ${window.location.host}`})}))}logout(){return qt(this,null,(function*(){return this.session.logout()}))}trackSession(t){this.session.onLogin((()=>t(this.session.info))),this.session.onLogout((()=>t(this.session.info))),this.session.onSessionRestore((()=>t(this.session.info))),t(this.session.info)}},this.store=new class{constructor(t){this.graph=Zd(),this.fetcher=Yd(this.graph,{fetch:t.authenticatedFetch})}fetch(t){return this.fetcher.load(Qd(t),{force:!0})}get(t){return new class{constructor(t,e){this.uri=t,this.store=e}label(){const t=this.anyValue("http://www.w3.org/2006/vcard/ns#fn","http://xmlns.com/foaf/0.1/name","http://xmlns.com/foaf/0.1/nick","https://schema.org/name","http://schema.org/name","http://purl.org/dc/terms/title","http://purl.org/dc/elements/1.1/title","http://www.w3.org/2000/01/rdf-schema#label","https://www.w3.org/ns/activitystreams#name","http://schema.org/caption","https://schema.org/caption");return null!=t?t:this.uri}literals(){const t=this.store.statementsMatching(Qd(this.uri)).filter((t=>lu(t.object))).reduce(ef,{});return Object.keys(t).map((e=>({predicate:e,values:t[e]})))}relations(){const t=this.store.statementsMatching(Qd(this.uri)).filter((t=>du(t.object))).reduce(ef,{});return Object.keys(t).map((e=>({predicate:e,uris:t[e]})))}reverseRelations(){const t=this.store.statementsMatching(void 0,void 0,Qd(this.uri)).reduce(tf,{});return Object.keys(t).map((e=>({predicate:e,uris:t[e]})))}anyValue(...t){let e;return t.some((t=>(e=this.store.anyValue(Qd(this.uri),Qd(t)),Boolean(e)))),e}description(){return this.anyValue("http://purl.org/dc/terms/description","http://purl.org/dc/elements/1.1/description","http://schema.org/description","https://schema.org/description","https://schema.org/text","http://www.w3.org/2000/01/rdf-schema#comment","https://www.w3.org/ns/activitystreams#summary","https://www.w3.org/ns/activitystreams#content","http://www.w3.org/2006/vcard/ns#note")}picture(){const t=this.anyValue("http://schema.org/image","https://schema.org/image","http://schema.org/logo","https://schema.org/logo","http://www.w3.org/2006/vcard/ns#hasPhoto","http://www.w3.org/2006/vcard/ns#photo","http://www.w3.org/2006/vcard/ns#hasLogo","http://www.w3.org/2006/vcard/ns#logo","http://xmlns.com/foaf/0.1/img","http://xmlns.com/foaf/0.1/depiction","http://xmlns.com/foaf/0.1/thumbnail");return t?{url:t}:this.findActivityStreamsPicture()}findActivityStreamsPicture(){const t=this.store.any(Qd(this.uri),Qd("https://www.w3.org/ns/activitystreams#image"))||this.store.any(Qd(this.uri),Qd("https://www.w3.org/ns/activitystreams#icon"));if(!(t&&(e=t,cu(e)&&"termType"in e&&"BlankNode"===e.termType||du(t))))return null;var e;const n=this.store.anyValue(t,Qd("https://www.w3.org/ns/activitystreams#url"));return n?{url:n}:null}}(t,this.graph)}}(this.session),this.fileFetcher=new class{constructor(t){this.session=t}fetchFile(t){return qt(this,null,(function*(){const e=yield this.session.authenticatedFetch(t);if(e.ok){const n=yield e.blob();return new class{constructor(t,e){this.url=t,this.data=e}blob(){return this.data}}(t,n)}return new class{constructor(t,e){this.url=t,this.status=e}toString(){return`${this.status.toString()} - ${this.url}`}blob(){return null}}(t,new class{constructor(t,e){this.code=t,this.text=e}toString(){return this.text?`${this.code} - ${this.text}`:this.code.toString()}}(e.status,e.statusText))}))}}(this.session)}handleIncomingRedirect(){this.session.handleIncomingRedirect()}fetch(t){return this.store.fetch(t)}fetchFile(t){return this.fileFetcher.fetchFile(t)}trackSession(t){return this.session.trackSession(t)}logout(){return this.session.logout()}login(t="http://localhost:3000"){return this.session.login(t)}},rf=class{constructor(e){t(this,e)}componentWillLoad(){this.os=nf(),this.os.handleIncomingRedirect(),this.os.trackSession((t=>{xt.state.isLoggedIn=t.isLoggedIn,xt.state.webId=t.webId}))}async initializeOs(t){t.stopPropagation(),t.detail(this.os)}render(){return e("ion-app",null,e("slot",null))}},of=class{constructor(e){t(this,e)}render(){return e("ion-grid",null,e("ion-row",null,e("ion-col",{size:"12","size-sm":!0},e("ion-card",null,e("ion-card-header",null,e("pos-picture",null),e("ion-card-title",null,e("pos-label",null))),e("ion-card-content",null,e("pos-description",null)))),e("ion-col",{size:"12","size-sm":!0},e("pos-literals",null)),e("ion-col",{size:"12","size-sm":!0},e("pos-relations",null),e("pos-reverse-relations",null))))}},sf=class{constructor(e){t(this,e)}render(){return e("pos-app",null,e("ion-header",null,e("ion-toolbar",null,e("ion-title",{slot:"start"},"pod os"),e("pos-login",null))),e("ion-content",null,e("pos-router",null)),e("ion-footer",null,e("ion-toolbar",null,e("ion-title",null,"Footer"))))}},af=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.setResource=async t=>{this.resource=t}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){return this.resource?this.resource.description():null}},uf=({file:t})=>{const n=function(t){switch(t.code){case 401:case 403:return"lock-closed-outline";case 404:return"help-circle-outline";default:return"alert-circle-outline"}}(t.status);return e("div",null,e("a",{class:"error",href:t.url},e("div",null,e("ion-icon",{name:n})),e("div",{class:"code"},t.status.code),e("div",{class:"text"},t.status.text)))},cf=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.loading=!0,this.setOs=async t=>{this.os=t}}componentWillLoad(){xt.onChange("isLoggedIn",(()=>this.fetchBlob())),this.initializeOsEmitter.emit(this.setOs)}async fetchBlob(){try{this.loading=!0;const t=await this.os.fetchFile(this.src);t.blob()?(this.dataUri=URL.createObjectURL(t.blob()),this.error=null):this.brokenFile=t}catch(t){this.error=t}finally{this.loading=!1}}render(){return this.loading?e("ion-skeleton-text",{animated:!0}):this.error?e("div",{class:"error"},this.error.message):this.brokenFile?e(uf,{file:this.brokenFile}):e("img",{src:this.dataUri})}static get watchers(){return{os:["fetchBlob"],src:["fetchBlob"]}}};cf.style=":host{}img,ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height)}.error{display:flex;opacity:0.8;background:repeating-linear-gradient( -45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px );flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);font-size:calc(var(--width) / 2)}a{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}";const lf=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.setResource=async t=>{this.resource=t}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){return this.resource?this.resource.label():null}},hf=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.data=[],this.setResource=async t=>{this.data=t.literals()}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,t.predicate)),t.values.map((t=>e("ion-item",null,e("ion-label",{class:"ion-text-wrap"},t)," "))))));return this.data.length>0?e("ion-list",null,t):null}},df=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.setOs=async t=>{this.os=t}}componentWillLoad(){this.initializeOsEmitter.emit(this.setOs)}login(){const t=xt.state.getIdpUrl();this.os.login(t)}logout(){this.os.logout()}render(){return e(n,null,xt.state.isLoggedIn?e("pos-resource",{uri:xt.state.webId},e("pos-label",null)):"",!xt.state.isLoggedIn&&e("ion-button",{onClick:()=>this.login()},"Login"),xt.state.isLoggedIn&&e("ion-button",{onClick:()=>this.logout()},"Logout"))}},ff=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.setResource=async t=>{this.resource=t}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){const t=this.resource?this.resource.picture():null;return t?e("pos-image",{src:t.url}):null}};ff.style=":host{--width:300px;--height:300px;--border-radius:var(--border-radius, 0)}";const pf=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.data=[],this.setResource=async t=>{this.data=t.relations()}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,t.predicate)),t.uris.map((t=>e("pos-rich-link",{uri:t}))))));return this.data.length>0?e("ion-list",null,t):null}},vf=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.consumers=[],this.lazy=!1,this.loading=!0,this.setOs=async t=>{this.os=t}}componentWillLoad(){xt.onChange("isLoggedIn",(()=>this.loadResource())),this.initializeOsEmitter.emit(this.setOs)}async provideResource(t){t.stopPropagation(),this.resource&&t.detail(this.resource),this.consumers.push(t)}async loadResource(){await this.getResource(!this.lazy)}async fetch(){await this.getResource(!0)}async getResource(t=!1){try{t&&(this.loading=!0,await this.os.fetch(this.uri)),this.resource=this.os.store.get(this.uri),this.error=null,this.consumers.forEach((t=>{t.detail(this.resource)}))}catch(t){this.error=t}finally{this.loading=!1}}render(){return this.loading?e("ion-progress-bar",{type:"indeterminate"}):this.error?e("div",null,this.error.message):e("slot",null)}static get watchers(){return{os:["loadResource"],uri:["loadResource"]}}},gf=class{constructor(e){t(this,e),this.getResource=r(this,"pod-os:resource",7),this.data=[],this.setResource=async t=>{this.data=t.reverseRelations()}}componentWillLoad(){this.getResource.emit(this.setResource)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,"is ",t.predicate," of")),t.uris.map((t=>e("pos-rich-link",{uri:t}))))));return this.data.length>0?e("ion-list",null,t):null}},mf=class{constructor(e){t(this,e),this.linkEmitter=r(this,"pod-os:link",7)}render(){return e("pos-resource",{lazy:!0,uri:this.uri},e("ion-item",{href:this.uri,onClick:t=>{t.preventDefault(),this.linkEmitter.emit(this.uri)}},e("ion-label",null,e("h2",null,e("pos-label",null)),e("p",null,e("ion-label",{style:{maxWidth:"50rem"}},e("pos-description",null))),e("p",null,e("a",{href:this.uri},this.uri)))))}},wf=(t,e)=>{var n;return"to"in t?{path:t.path,to:t.to}:{path:t.path,id:t.id,jsx:null!==(n=t.render)&&void 0!==n?n:e}},bf=(t,e)=>{if("string"==typeof e){if(e===t)return{}}else if("function"==typeof e){const n=e(t);if(n)return!0===n?{}:{...n}}else{const n=e.exec(t);if(n)return e.lastIndex=0,{...n}}},yf=t=>t.pathname.toLowerCase(),xf=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),kf=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),Ef=t=>t.replace(/([=!:$/()])/g,"\\$1"),Sf=t=>t&&t.sensitive?"":"i",Ff=(t,e,n)=>{for(var i=(n=n||{}).strict,r=!1!==n.end,o=kf(n.delimiter||"/"),s=n.delimiters||"./",a=[].concat(n.endsWith||[]).map(kf).concat("$").join("|"),u="",c=!1,l=0;l<t.length;l++){var h=t[l];if("string"==typeof h)u+=kf(h),c=l===t.length-1&&s.indexOf(h[h.length-1])>-1;else{var d=kf(h.prefix||""),f=h.repeat?"(?:"+h.pattern+")(?:"+d+"(?:"+h.pattern+"))*":h.pattern;e&&e.push(h),u+=h.optional?h.partial?d+"("+f+")?":"(?:"+d+"("+f+"))?":d+"("+f+")"}}return r?(i||(u+="(?:"+o+")?"),u+="$"===a?"$":"(?="+a+")"):(i||(u+="(?:"+o+"(?="+a+"))?"),c||(u+="(?="+o+"|"+a+")")),new RegExp("^"+u,Sf(n))},Af=(t,e,n)=>t instanceof RegExp?((t,e)=>{if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,e):Array.isArray(t)?((t,e,n)=>{for(var i=[],r=0;r<t.length;r++)i.push(Af(t[r],e,n).source);return new RegExp("(?:"+i.join("|")+")",Sf(n))})(t,e,n):((t,e,n)=>Ff(((t,e)=>{for(var n,i=[],r=0,o=0,s="",a=e&&e.delimiter||"/",u=e&&e.delimiters||"./",c=!1;null!==(n=xf.exec(t));){var l=n[0],h=n[1],d=n.index;if(s+=t.slice(o,d),o=d+l.length,h)s+=h[1],c=!0;else{var f="",p=t[o],v=n[2],g=n[3],m=n[4],w=n[5];if(!c&&s.length){var b=s.length-1;u.indexOf(s[b])>-1&&(f=s[b],s=s.slice(0,b))}s&&(i.push(s),s="",c=!1);var y=f||a,x=g||m;i.push({name:v||r++,prefix:f,delimiter:y,optional:"?"===w||"*"===w,repeat:"+"===w||"*"===w,partial:""!==f&&void 0!==p&&p!==f,pattern:x?Ef(x):"[^"+kf(y)+"]+?"})}}return(s||o<t.length)&&i.push(s+t.substr(o)),i})(t,n),e,n))(t,e,n);let _f=0;const jf={},Cf=(t,e={})=>{const{exact:n=!1,strict:i=!1}=e,{re:r,keys:o}=((t,e)=>{const n=`${e.end}${e.strict}`,i=jf[n]||(jf[n]={}),r=JSON.stringify(t);if(i[r])return i[r];const o=[],s={re:Af(t,o,e),keys:o};return _f<1e4&&(i[r]=s,_f+=1),s})(t,{end:n,strict:i});return t=>{const e=r.exec(t);if(!e)return;const[i,...s]=e;return n&&t!==i?void 0:o.reduce(((t,e,n)=>(t[e.name]=s[n],t)),{})}},Rf=(()=>{const t=window,e=new URL(t.location.href),n=(void 0,yf),{state:i,onChange:r,dispose:o}=yt({url:e,activePath:n(e)},((t,e,n)=>"url"===n?t.href!==e.href:t!==e)),s=t=>{history.pushState(null,null,t);const e=new URL(t,document.baseURI);i.url=e,i.activePath=n(e)},a=t=>{const{activePath:e}=i;for(let n of t){const i=bf(e,n.path);if(i){if(null!=n.to){const i="string"==typeof n.to?n.to:n.to(e);return s(i),a(t)}return{params:i,route:n}}}},u=()=>{const e=new URL(t.location.href);i.url=e,i.activePath=n(e)},c={Switch:(t,e)=>{const n=a(e);if(n)return"function"==typeof n.route.jsx?n.route.jsx(n.params):n.route.jsx},get url(){return i.url},get activePath(){return i.activePath},push:s,onChange:r,dispose:()=>{t.removeEventListener("popstate",u),o()}};return u(),t.addEventListener("popstate",u),c})(),If=class{constructor(e){t(this,e)}linkClicked(t){this.navigate(t.detail)}componentWillLoad(){this.updateUri(),Rf.onChange("url",(()=>{this.updateUri()}))}navigate(t){Rf.push("?uri="+encodeURIComponent(t))}updateUri(){this.uri=new URLSearchParams(window.location.search).get("uri")||window.location.href}render(){return console.log("render router",this.uri),e(Rf.Switch,null,e(wf,{path:Cf("",{exact:!1})},e("pos-resource",{key:this.uri,uri:this.uri},e("pos-app-generic",null))))}};export{y as ion_app,E as ion_button,S as ion_card,F as ion_card_content,A as ion_card_header,_ as ion_card_title,O as ion_col,N as ion_content,M as ion_footer,U as ion_grid,H as ion_header,Q as ion_icon,nt as ion_item,it as ion_item_divider,rt as ion_item_group,ot as ion_label,st as ion_list,at as ion_progress_bar,lt as ion_ripple_effect,pt as ion_row,vt as ion_skeleton_text,gt as ion_title,mt as ion_toolbar,rf as pos_app,of as pos_app_generic,sf as pos_demo_app,af as pos_description,cf as pos_image,lf as pos_label,hf as pos_literals,df as pos_login,ff as pos_picture,pf as pos_relations,vf as pos_resource,gf as pos_reverse_relations,mf as pos_rich_link,If as pos_router}
|
|
@@ -39997,7 +39997,7 @@ function iconForStatus(status) {
|
|
|
39997
39997
|
}
|
|
39998
39998
|
}
|
|
39999
39999
|
|
|
40000
|
-
const posImageCss = "img,ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height)}.error{display:flex;opacity:0.8;background:repeating-linear-gradient( -45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px );flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);font-size:calc(var(--width) / 2)}a{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}";
|
|
40000
|
+
const posImageCss = ":host{}img,ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height)}.error{display:flex;opacity:0.8;background:repeating-linear-gradient( -45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px );flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);font-size:calc(var(--width) / 2)}a{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}";
|
|
40001
40001
|
|
|
40002
40002
|
const PosImage = class {
|
|
40003
40003
|
constructor(hostRef) {
|