@paperless/core 0.1.0-alpha.346 → 0.1.0-alpha.348

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 (79) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/build/p-21c22d2a.entry.js +2 -0
  3. package/dist/build/p-21c22d2a.entry.js.map +1 -0
  4. package/dist/build/{p-f4f33334.entry.js → p-3d68b72f.entry.js} +2 -2
  5. package/dist/build/{p-f4f33334.entry.js.map → p-3d68b72f.entry.js.map} +0 -0
  6. package/dist/build/{p-73deafe6.entry.js → p-5dfab26d.entry.js} +2 -2
  7. package/dist/build/{p-73deafe6.entry.js.map → p-5dfab26d.entry.js.map} +0 -0
  8. package/dist/build/{p-0249e9cd.entry.js → p-7171690b.entry.js} +2 -2
  9. package/dist/build/{p-0249e9cd.entry.js.map → p-7171690b.entry.js.map} +0 -0
  10. package/dist/build/p-bff2caf8.entry.js +2 -0
  11. package/dist/{paperless/p-150f371d.entry.js.map → build/p-bff2caf8.entry.js.map} +1 -1
  12. package/dist/build/paperless.esm.js +1 -1
  13. package/dist/cjs/p-backdrop.cjs.entry.js +1 -1
  14. package/dist/cjs/p-button_3.cjs.entry.js +3 -3
  15. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  16. package/dist/cjs/p-modal-body_4.cjs.entry.js +4 -4
  17. package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
  18. package/dist/cjs/p-stepper.cjs.entry.js +6 -2
  19. package/dist/cjs/p-stepper.cjs.entry.js.map +1 -1
  20. package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -1
  21. package/dist/collection/components/atoms/button/button.component.css +1 -1
  22. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  23. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -1
  24. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  25. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  26. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  27. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -1
  28. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -1
  29. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -1
  30. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -1
  31. package/dist/collection/components/molecules/calendar/calendar.component.css +1 -1
  32. package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -1
  33. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
  34. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -1
  35. package/dist/collection/components/molecules/stepper/stepper.component.js +6 -2
  36. package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -1
  37. package/dist/components/backdrop.component.js +1 -1
  38. package/dist/components/button.component.js +1 -1
  39. package/dist/components/divider.component.js +1 -1
  40. package/dist/components/icon.component.js +1 -1
  41. package/dist/components/loader.component.js +1 -1
  42. package/dist/components/modal-body.component.js +1 -1
  43. package/dist/components/modal-body.component.js.map +1 -1
  44. package/dist/components/modal-container.component.js +1 -1
  45. package/dist/components/modal-container.component.js.map +1 -1
  46. package/dist/components/modal-footer.component.js +1 -1
  47. package/dist/components/modal-header.component.js +1 -1
  48. package/dist/components/modal-header.component.js.map +1 -1
  49. package/dist/components/p-stepper.js +6 -2
  50. package/dist/components/p-stepper.js.map +1 -1
  51. package/dist/esm/p-backdrop.entry.js +1 -1
  52. package/dist/esm/p-button_3.entry.js +3 -3
  53. package/dist/esm/p-divider.entry.js +1 -1
  54. package/dist/esm/p-modal-body_4.entry.js +4 -4
  55. package/dist/esm/p-modal-body_4.entry.js.map +1 -1
  56. package/dist/esm/p-stepper.entry.js +6 -2
  57. package/dist/esm/p-stepper.entry.js.map +1 -1
  58. package/dist/index.html +1 -1
  59. package/dist/paperless/p-21c22d2a.entry.js +2 -0
  60. package/dist/paperless/p-21c22d2a.entry.js.map +1 -0
  61. package/dist/paperless/{p-f4f33334.entry.js → p-3d68b72f.entry.js} +2 -2
  62. package/dist/paperless/{p-f4f33334.entry.js.map → p-3d68b72f.entry.js.map} +0 -0
  63. package/dist/paperless/{p-73deafe6.entry.js → p-5dfab26d.entry.js} +2 -2
  64. package/dist/paperless/{p-73deafe6.entry.js.map → p-5dfab26d.entry.js.map} +0 -0
  65. package/dist/paperless/{p-0249e9cd.entry.js → p-7171690b.entry.js} +2 -2
  66. package/dist/paperless/{p-0249e9cd.entry.js.map → p-7171690b.entry.js.map} +0 -0
  67. package/dist/paperless/p-bff2caf8.entry.js +2 -0
  68. package/dist/{build/p-150f371d.entry.js.map → paperless/p-bff2caf8.entry.js.map} +1 -1
  69. package/dist/paperless/paperless.esm.js +1 -1
  70. package/dist/sw.js +1 -1
  71. package/dist/sw.js.map +1 -1
  72. package/hydrate/index.js +19 -15
  73. package/package.json +1 -1
  74. package/dist/build/p-150f371d.entry.js +0 -2
  75. package/dist/build/p-5b15b0f7.entry.js +0 -2
  76. package/dist/build/p-5b15b0f7.entry.js.map +0 -1
  77. package/dist/paperless/p-150f371d.entry.js +0 -2
  78. package/dist/paperless/p-5b15b0f7.entry.js +0 -2
  79. package/dist/paperless/p-5b15b0f7.entry.js.map +0 -1
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.348](https://github.com/ionic-team/stencil-component-starter/compare/v0.1.0-alpha.347...v0.1.0-alpha.348) (2023-02-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **Molecules/Stepper:** use nextElementSibling ([2519ad4](https://github.com/ionic-team/stencil-component-starter/commit/2519ad4d9c72bc86e77371538ac800f20c6cb1cd))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.1.0-alpha.347](https://github.com/ionic-team/stencil-component-starter/compare/v0.1.0-alpha.346...v0.1.0-alpha.347) (2023-02-21)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **Molecules/Stepper:** Add debugging information ([08c556a](https://github.com/ionic-team/stencil-component-starter/commit/08c556ab42672122a7634905b5c4626cb5201e69))
23
+
24
+
25
+
26
+
27
+
6
28
  # [0.1.0-alpha.346](https://github.com/ionic-team/stencil-component-starter/compare/v0.1.0-alpha.345...v0.1.0-alpha.346) (2023-02-21)
7
29
 
8
30
 
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e,H as i,g as o}from"./p-69d43b9d.js";const s=".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;const e=this._el.querySelectorAll("p-stepper-item");if(!!this.activeStep||t<=0){const i=Array.from(e);const o=i.findIndex((t=>t.tagName.toLowerCase()==="p-stepper-item"&&t.active&&!t.finished));if(o>=0){t=o}const s=i.findIndex((t=>t.tagName.toLowerCase()==="p-stepper-item"&&t.finished));if(t<=0&&s>=0){t=s+1}}console.log(e);for(let i=0;i<(e===null||e===void 0?void 0:e.length);i++){const o=e.item(i);console.log(o);if(o.tagName.toLowerCase()==="p-stepper-item"){o.active=i===t;o.finished=i<t;o.direction=this.direction;o.align=i===0?"start":i===(e===null||e===void 0?void 0:e.length)-1?"end":"center";o.contentPosition=this.contentPosition;if(i>0){const e=o.nextElementSibling;console.log(i,o,i+1,e,e===null||e===void 0?void 0:e.tagName);if(!e||e.tagName.toLowerCase()==="p-stepper-item"){console.log("Adding line");const e=(o.clientHeight-16)/2;const s=document.createElement("p-stepper-line");s.direction=this.direction;s.active=i<=t;if(e>0&&this.direction==="vertical"){s.style.marginTop=`-${e/16}rem`;s.style.marginBottom=`-${e/16}rem`;s.style.minHeight=`calc(1rem + ${e*2/16}rem)`}this._el.insertBefore(s,o);continue}if(e.tagName.toLowerCase()==="p-stepper-line"){console.log("Updating line");e.direction=this.direction;e.active=i<=t}}}}}get _el(){return o(this)}};n.style=s;export{n as p_stepper};
2
+ //# sourceMappingURL=p-21c22d2a.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stepperComponentCss","Stepper","componentDidRender","this","_generateSteps","render","h","Host","class","activeStep","items","_el","querySelectorAll","arrayItems","Array","from","activeItemIndex","findIndex","i","tagName","toLowerCase","active","finished","finishedItemIndex","console","log","length","item","direction","align","contentPosition","nextItem","nextElementSibling","heightDiff","clientHeight","stepperLine","document","createElement","style","marginTop","marginBottom","minHeight","insertBefore"],"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;\n const items = this._el.querySelectorAll('p-stepper-item');\n\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 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 activeStep = finishedItemIndex + 1;\n }\n }\n\n console.log(items);\n for (let i = 0; i < items?.length; i++) {\n const item = items.item(i) as any;\n console.log(item);\n\n if (item.tagName.toLowerCase() === 'p-stepper-item') {\n item.active = i === activeStep;\n item.finished = i < activeStep;\n item.direction = this.direction;\n item.align =\n i === 0\n ? 'start'\n : i === items?.length - 1\n ? 'end'\n : 'center';\n item.contentPosition = this.contentPosition;\n\n if (i > 0) {\n const nextItem = item.nextElementSibling;\n\n console.log(i, item, i + 1, nextItem, nextItem?.tagName);\n if (\n !nextItem ||\n nextItem.tagName.toLowerCase() === 'p-stepper-item'\n ) {\n console.log('Adding line');\n const heightDiff = (item.clientHeight - 16) / 2;\n\n const stepperLine =\n document.createElement('p-stepper-line');\n stepperLine.direction = this.direction;\n stepperLine.active = i <= activeStep;\n\n if (heightDiff > 0 && this.direction === 'vertical') {\n stepperLine.style.marginTop = `-${\n heightDiff / 16\n }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, item);\n\n continue;\n }\n\n if (nextItem.tagName.toLowerCase() === 'p-stepper-line') {\n console.log('Updating line');\n nextItem.direction = this.direction;\n nextItem.active = i <= activeStep;\n }\n }\n }\n }\n }\n}\n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