@paperless/core 0.1.0-alpha.352 → 0.1.0-alpha.354

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.
Files changed (138) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/build/p-376d98e9.entry.js +2 -0
  3. package/dist/build/p-376d98e9.entry.js.map +1 -0
  4. package/dist/{paperless/p-0eda05ed.entry.js → build/p-3d68b72f.entry.js} +2 -2
  5. package/dist/{paperless/p-0eda05ed.entry.js.map → build/p-3d68b72f.entry.js.map} +1 -1
  6. package/dist/{paperless/p-34e4e210.entry.js → build/p-5dfab26d.entry.js} +2 -2
  7. package/dist/build/{p-34e4e210.entry.js.map → p-5dfab26d.entry.js.map} +1 -1
  8. package/dist/build/p-657eb257.entry.js +2 -0
  9. package/dist/build/{p-d86e3e82.entry.js.map → p-657eb257.entry.js.map} +1 -1
  10. package/dist/build/{p-0249e9cd.entry.js → p-7171690b.entry.js} +2 -2
  11. package/dist/build/{p-0249e9cd.entry.js.map → p-7171690b.entry.js.map} +0 -0
  12. package/dist/{paperless/p-3b2777d9.entry.js → build/p-bea2ecf8.entry.js} +2 -2
  13. package/dist/{paperless/p-3b2777d9.entry.js.map → build/p-bea2ecf8.entry.js.map} +1 -1
  14. package/dist/build/p-bff2caf8.entry.js +2 -0
  15. package/dist/build/{p-150f371d.entry.js.map → p-bff2caf8.entry.js.map} +1 -1
  16. package/dist/build/p-c2ce8fea.entry.js +2 -0
  17. package/dist/build/{p-f98027f1.entry.js.map → p-c2ce8fea.entry.js.map} +1 -1
  18. package/dist/build/p-f80f397d.entry.js +2 -0
  19. package/dist/{paperless/p-23f04588.entry.js.map → build/p-f80f397d.entry.js.map} +1 -1
  20. package/dist/build/paperless.esm.js +1 -1
  21. package/dist/cjs/p-backdrop.cjs.entry.js +1 -1
  22. package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -1
  23. package/dist/cjs/p-button_3.cjs.entry.js +3 -3
  24. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
  25. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  26. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +1 -1
  27. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -1
  28. package/dist/cjs/p-dropdown_2.cjs.entry.js +1 -1
  29. package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -1
  30. package/dist/cjs/p-helper_3.cjs.entry.js +2 -2
  31. package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -1
  32. package/dist/cjs/p-modal-body_4.cjs.entry.js +4 -4
  33. package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
  34. package/dist/cjs/p-select.cjs.entry.js +1 -1
  35. package/dist/cjs/p-select.cjs.entry.js.map +1 -1
  36. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  37. package/dist/cjs/p-stepper.cjs.entry.js.map +1 -1
  38. package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -1
  39. package/dist/collection/components/atoms/button/button.component.css +1 -1
  40. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  41. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -1
  42. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  43. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  44. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  45. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -1
  46. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -1
  47. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -1
  48. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -1
  49. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
  50. package/dist/collection/components/molecules/calendar/calendar.component.css +1 -1
  51. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
  52. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -1
  53. package/dist/collection/components/molecules/profile/profile.component.css +1 -1
  54. package/dist/collection/components/molecules/select/select.component.js +1 -1
  55. package/dist/collection/components/molecules/select/select.component.js.map +1 -1
  56. package/dist/collection/components/molecules/stepper/stepper.component.js +1 -1
  57. package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -1
  58. package/dist/components/backdrop.component.js +1 -1
  59. package/dist/components/backdrop.component.js.map +1 -1
  60. package/dist/components/button.component.js +1 -1
  61. package/dist/components/button.component.js.map +1 -1
  62. package/dist/components/divider.component.js +1 -1
  63. package/dist/components/dropdown-menu-container.component.js +1 -1
  64. package/dist/components/dropdown-menu-container.component.js.map +1 -1
  65. package/dist/components/dropdown.component.js +1 -1
  66. package/dist/components/dropdown.component.js.map +1 -1
  67. package/dist/components/helper.component.js +1 -1
  68. package/dist/components/helper.component.js.map +1 -1
  69. package/dist/components/icon.component.js +1 -1
  70. package/dist/components/icon.component.js.map +1 -1
  71. package/dist/components/input-group.component.js +1 -1
  72. package/dist/components/input-group.component.js.map +1 -1
  73. package/dist/components/loader.component.js +1 -1
  74. package/dist/components/loader.component.js.map +1 -1
  75. package/dist/components/modal-body.component.js +1 -1
  76. package/dist/components/modal-body.component.js.map +1 -1
  77. package/dist/components/modal-container.component.js +1 -1
  78. package/dist/components/modal-container.component.js.map +1 -1
  79. package/dist/components/modal-footer.component.js +1 -1
  80. package/dist/components/modal-header.component.js +1 -1
  81. package/dist/components/modal-header.component.js.map +1 -1
  82. package/dist/components/p-select.js +1 -1
  83. package/dist/components/p-select.js.map +1 -1
  84. package/dist/components/p-stepper.js +1 -1
  85. package/dist/components/p-stepper.js.map +1 -1
  86. package/dist/esm/p-backdrop.entry.js +1 -1
  87. package/dist/esm/p-backdrop.entry.js.map +1 -1
  88. package/dist/esm/p-button_3.entry.js +3 -3
  89. package/dist/esm/p-button_3.entry.js.map +1 -1
  90. package/dist/esm/p-divider.entry.js +1 -1
  91. package/dist/esm/p-dropdown-menu-container.entry.js +1 -1
  92. package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -1
  93. package/dist/esm/p-dropdown_2.entry.js +1 -1
  94. package/dist/esm/p-dropdown_2.entry.js.map +1 -1
  95. package/dist/esm/p-helper_3.entry.js +2 -2
  96. package/dist/esm/p-helper_3.entry.js.map +1 -1
  97. package/dist/esm/p-modal-body_4.entry.js +4 -4
  98. package/dist/esm/p-modal-body_4.entry.js.map +1 -1
  99. package/dist/esm/p-select.entry.js +1 -1
  100. package/dist/esm/p-select.entry.js.map +1 -1
  101. package/dist/esm/p-stepper.entry.js +1 -1
  102. package/dist/esm/p-stepper.entry.js.map +1 -1
  103. package/dist/index.html +1 -1
  104. package/dist/paperless/p-376d98e9.entry.js +2 -0
  105. package/dist/paperless/p-376d98e9.entry.js.map +1 -0
  106. package/dist/{build/p-0eda05ed.entry.js → paperless/p-3d68b72f.entry.js} +2 -2
  107. package/dist/{build/p-0eda05ed.entry.js.map → paperless/p-3d68b72f.entry.js.map} +1 -1
  108. package/dist/{build/p-34e4e210.entry.js → paperless/p-5dfab26d.entry.js} +2 -2
  109. package/dist/paperless/{p-34e4e210.entry.js.map → p-5dfab26d.entry.js.map} +1 -1
  110. package/dist/paperless/p-657eb257.entry.js +2 -0
  111. package/dist/paperless/{p-d86e3e82.entry.js.map → p-657eb257.entry.js.map} +1 -1
  112. package/dist/paperless/{p-0249e9cd.entry.js → p-7171690b.entry.js} +2 -2
  113. package/dist/paperless/{p-0249e9cd.entry.js.map → p-7171690b.entry.js.map} +0 -0
  114. package/dist/{build/p-3b2777d9.entry.js → paperless/p-bea2ecf8.entry.js} +2 -2
  115. package/dist/{build/p-3b2777d9.entry.js.map → paperless/p-bea2ecf8.entry.js.map} +1 -1
  116. package/dist/paperless/p-bff2caf8.entry.js +2 -0
  117. package/dist/paperless/{p-150f371d.entry.js.map → p-bff2caf8.entry.js.map} +1 -1
  118. package/dist/paperless/p-c2ce8fea.entry.js +2 -0
  119. package/dist/paperless/{p-f98027f1.entry.js.map → p-c2ce8fea.entry.js.map} +1 -1
  120. package/dist/paperless/p-f80f397d.entry.js +2 -0
  121. package/dist/{build/p-23f04588.entry.js.map → paperless/p-f80f397d.entry.js.map} +1 -1
  122. package/dist/paperless/paperless.esm.js +1 -1
  123. package/dist/sw.js +1 -1
  124. package/dist/sw.js.map +1 -1
  125. package/hydrate/index.js +18 -18
  126. package/package.json +1 -1
  127. package/dist/build/p-150f371d.entry.js +0 -2
  128. package/dist/build/p-23f04588.entry.js +0 -2
  129. package/dist/build/p-42667fce.entry.js +0 -2
  130. package/dist/build/p-42667fce.entry.js.map +0 -1
  131. package/dist/build/p-d86e3e82.entry.js +0 -2
  132. package/dist/build/p-f98027f1.entry.js +0 -2
  133. package/dist/paperless/p-150f371d.entry.js +0 -2
  134. package/dist/paperless/p-23f04588.entry.js +0 -2
  135. package/dist/paperless/p-42667fce.entry.js +0 -2
  136. package/dist/paperless/p-42667fce.entry.js.map +0 -1
  137. package/dist/paperless/p-d86e3e82.entry.js +0 -2
  138. package/dist/paperless/p-f98027f1.entry.js +0 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.1.0-alpha.354](https://github.com/ionic-team/stencil-component-starter/compare/v0.1.0-alpha.353...v0.1.0-alpha.354) (2023-02-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * **Molecules/Select:** Allow for return of whole item ([bb19b6e](https://github.com/ionic-team/stencil-component-starter/commit/bb19b6e449f4312b028e0f6a1379376cded2ff20))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.1.0-alpha.353](https://github.com/ionic-team/stencil-component-starter/compare/v0.1.0-alpha.352...v0.1.0-alpha.353) (2023-02-21)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **Molecules/Stepper:** I am pretty stupid ([3e5fca5](https://github.com/ionic-team/stencil-component-starter/commit/3e5fca5f741227b95a215c92388e663ab756a7cd))
23
+
24
+
25
+
26
+
27
+
6
28
  # [0.1.0-alpha.352](https://github.com/ionic-team/stencil-component-starter/compare/v0.1.0-alpha.351...v0.1.0-alpha.352) (2023-02-21)
7
29
 
8
30
 
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e,H as i,g as s}from"./p-69d43b9d.js";const o=".static{position:static!important}.flex{display:flex!important}.h-auto{height:auto!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}*{box-sizing:border-box}:host{display:flex}:host([direction=horizontal]){align-items:flex-end;height:auto}:host([direction=vertical]){align-items:flex-start;flex-direction:column;flex-wrap:wrap;min-height:100%;width:100%}:host([direction=vertical][content-position=start]){align-items:flex-end}";const n=class{constructor(e){t(this,e);this.activeStep=1;this.direction="horizontal";this.contentPosition="end"}componentDidRender(){this._generateSteps()}render(){return e(i,{class:"p-stepper"},e("slot",null))}_generateSteps(){let t=this.activeStep-1||0;const e=this._el.querySelectorAll("p-stepper-item");console.log("active step",t,this.activeStep);if(!this.activeStep||t<0){const i=Array.from(e);const s=i.findIndex((t=>t.tagName.toLowerCase()==="p-stepper-item"&&t.active&&!t.finished));if(s>=0){console.log("Edit activeStep active");t=s}const o=i.findIndex((t=>t.tagName.toLowerCase()==="p-stepper-item"&&t.finished));if(t<0&&o>=0){console.log("Edit activeStep finished");t=o+1}}for(let i=0;i<(e===null||e===void 0?void 0:e.length);i++){const s=e.item(i);console.log({i,activeStep:t,thisActiveStep:this.activeStep});s.active=i===t;s.finished=i<t;s.direction=this.direction;s.align=i===0?"start":i===(e===null||e===void 0?void 0:e.length)-1?"end":"center";s.contentPosition=this.contentPosition;if(i<e.length-1){const e=s.nextElementSibling;if(e&&e.tagName.toLowerCase()==="p-stepper-item"){const o=(s.clientHeight-16)/2;const n=document.createElement("p-stepper-line");n.direction=this.direction;n.active=i<=t;if(o>0&&this.direction==="vertical"){n.style.marginTop=`-${o/16}rem`;n.style.marginBottom=`-${o/16}rem`;n.style.minHeight=`calc(1rem + ${o*2/16}rem)`}this._el.insertBefore(n,e);continue}}if(i>0){const t=s.previousElementSibling;if(t.tagName.toLowerCase()==="p-stepper-line"){t.direction=this.direction;t.active=s.active||s.finished}}}}get _el(){return s(this)}};n.style=o;export{n as p_stepper};
2
+ //# sourceMappingURL=p-376d98e9.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stepperComponentCss","Stepper","componentDidRender","this","_generateSteps","render","h","Host","class","activeStep","items","_el","querySelectorAll","console","log","arrayItems","Array","from","activeItemIndex","findIndex","i","tagName","toLowerCase","active","finished","finishedItemIndex","length","item","thisActiveStep","direction","align","contentPosition","nextItem","nextElementSibling","heightDiff","clientHeight","stepperLine","document","createElement","style","marginTop","marginBottom","minHeight","insertBefore","previousItem","previousElementSibling"],"sources":["./src/components/molecules/stepper/stepper.component.scss?tag=p-stepper&encapsulation=shadow","./src/components/molecules/stepper/stepper.component.tsx"],"sourcesContent":[":host {\n @apply flex;\n}\n\n:host([direction='horizontal']) {\n @apply h-auto items-end;\n}\n\n:host([direction='vertical']) {\n @apply flex-col flex-wrap items-start;\n @apply w-full min-h-full;\n}\n\n:host([direction='vertical'][content-position='start']) {\n @apply items-end;\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'p-stepper',\n styleUrl: 'stepper.component.scss',\n shadow: true,\n})\nexport class Stepper {\n /**\n * The currently active step\n */\n @Prop() activeStep: number = 1;\n\n /**\n * The direction of the stepper\n */\n @Prop({ reflect: true }) direction: 'horizontal' | 'vertical' =\n 'horizontal';\n\n /**\n * The position of the content in case of vertical direction\n */\n @Prop({ reflect: true }) contentPosition: 'start' | 'end' = 'end';\n\n /**\n * The host element\n */\n @Element() private _el: HTMLElement;\n\n // private _steps: Array<HTMLPStepperItemElement>;\n\n componentDidRender() {\n this._generateSteps();\n }\n\n render() {\n return (\n <Host class=\"p-stepper\">\n <slot />\n </Host>\n );\n }\n\n private _generateSteps() {\n let activeStep = this.activeStep - 1 || 0;\n const items = this._el.querySelectorAll('p-stepper-item');\n\n console.log('active step', activeStep, this.activeStep);\n if (!this.activeStep || activeStep < 0) {\n const arrayItems = Array.from(items);\n const activeItemIndex = arrayItems.findIndex(\n (i: any) =>\n i.tagName.toLowerCase() === 'p-stepper-item' &&\n i.active &&\n !i.finished\n );\n\n if (activeItemIndex >= 0) {\n console.log('Edit activeStep active');\n activeStep = activeItemIndex;\n }\n\n const finishedItemIndex = arrayItems.findIndex(\n (i: any) =>\n i.tagName.toLowerCase() === 'p-stepper-item' && i.finished\n );\n if (activeStep < 0 && finishedItemIndex >= 0) {\n console.log('Edit activeStep finished');\n activeStep = finishedItemIndex + 1;\n }\n }\n\n for (let i = 0; i < items?.length; i++) {\n const item = items.item(i) as any;\n\n console.log({\n i,\n activeStep,\n thisActiveStep: this.activeStep,\n });\n\n item.active = i === activeStep;\n item.finished = i < activeStep;\n item.direction = this.direction;\n item.align =\n i === 0 ? 'start' : i === items?.length - 1 ? 'end' : 'center';\n item.contentPosition = this.contentPosition;\n\n if (i < items.length - 1) {\n const nextItem = item.nextElementSibling;\n if (\n nextItem &&\n nextItem.tagName.toLowerCase() === 'p-stepper-item'\n ) {\n const heightDiff = (item.clientHeight - 16) / 2;\n\n const stepperLine =\n document.createElement('p-stepper-line');\n\n stepperLine.direction = this.direction;\n stepperLine.active = i <= activeStep;\n\n if (heightDiff > 0 && this.direction === 'vertical') {\n stepperLine.style.marginTop = `-${heightDiff / 16}rem`;\n stepperLine.style.marginBottom = `-${\n heightDiff / 16\n }rem`;\n stepperLine.style.minHeight = `calc(1rem + ${\n (heightDiff * 2) / 16\n }rem)`;\n }\n\n this._el.insertBefore(stepperLine, nextItem);\n\n continue;\n }\n }\n\n if (i > 0) {\n const previousItem = item.previousElementSibling;\n if (previousItem.tagName.toLowerCase() === 'p-stepper-line') {\n previousItem.direction = this.direction;\n previousItem.active = item.active || item.finished;\n }\n }\n }\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAsB,if,MCOfC,EAAO,M,yCAIa,E,eAMzB,a,qBAK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