@paperless/core 0.1.0-alpha.15 → 0.1.0-alpha.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.16 (2022-07-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **Angular/Pagination:** Make sure we write the correct property ([c1b9fdc](https://github.com/ionic-team/stencil-component-starter/commit/c1b9fdc22a9621a7f1ff0d354a9395d94902e4bc))
12
+
13
+
14
+
15
+
16
+
6
17
  # 0.1.0-alpha.15 (2022-07-12)
7
18
 
8
19
 
@@ -55,7 +55,7 @@ const Pagination = class {
55
55
  };
56
56
  // Disable page range, display all the pages
57
57
  if (range === null) {
58
- const p = this._pages.map(p => ({
58
+ const p = this._pages.map((p) => ({
59
59
  type: 'page',
60
60
  value: p,
61
61
  }));
@@ -116,9 +116,11 @@ const Pagination = class {
116
116
  }
117
117
  render() {
118
118
  var _a;
119
- return (index.h(index.Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map(p => {
119
+ return (index.h(index.Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map((p) => {
120
120
  if (p.type === 'previous' || p.type === 'next') {
121
- return index.h("p-pagination-item", { onClick: () => (p.type === 'previous' ? this._previousClick() : this._nextClick()) }, p.value);
121
+ return (index.h("p-pagination-item", { onClick: () => p.type === 'previous'
122
+ ? this._previousClick()
123
+ : this._nextClick() }, p.value));
122
124
  }
123
125
  if (p.type === 'ellipsis') {
124
126
  return index.h("p-pagination-item", null, "...");
@@ -1,4 +1,4 @@
1
- import { Component, Event, h, Host, Prop, Watch } from '@stencil/core';
1
+ import { Component, Event, h, Host, Prop, Watch, } from '@stencil/core';
2
2
  export class Pagination {
3
3
  constructor() {
4
4
  /**
@@ -46,7 +46,7 @@ export class Pagination {
46
46
  };
47
47
  // Disable page range, display all the pages
48
48
  if (range === null) {
49
- const p = this._pages.map(p => ({
49
+ const p = this._pages.map((p) => ({
50
50
  type: 'page',
51
51
  value: p,
52
52
  }));
@@ -107,9 +107,11 @@ export class Pagination {
107
107
  }
108
108
  render() {
109
109
  var _a;
110
- return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map(p => {
110
+ return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map((p) => {
111
111
  if (p.type === 'previous' || p.type === 'next') {
112
- return h("p-pagination-item", { onClick: () => (p.type === 'previous' ? this._previousClick() : this._nextClick()) }, p.value);
112
+ return (h("p-pagination-item", { onClick: () => p.type === 'previous'
113
+ ? this._previousClick()
114
+ : this._nextClick() }, p.value));
113
115
  }
114
116
  if (p.type === 'ellipsis') {
115
117
  return h("p-pagination-item", null, "...");
@@ -54,7 +54,7 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
54
54
  };
55
55
  // Disable page range, display all the pages
56
56
  if (range === null) {
57
- const p = this._pages.map(p => ({
57
+ const p = this._pages.map((p) => ({
58
58
  type: 'page',
59
59
  value: p,
60
60
  }));
@@ -115,9 +115,11 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
115
115
  }
116
116
  render() {
117
117
  var _a;
118
- return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map(p => {
118
+ return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map((p) => {
119
119
  if (p.type === 'previous' || p.type === 'next') {
120
- return h("p-pagination-item", { onClick: () => (p.type === 'previous' ? this._previousClick() : this._nextClick()) }, p.value);
120
+ return (h("p-pagination-item", { onClick: () => p.type === 'previous'
121
+ ? this._previousClick()
122
+ : this._nextClick() }, p.value));
121
123
  }
122
124
  if (p.type === 'ellipsis') {
123
125
  return h("p-pagination-item", null, "...");
@@ -51,7 +51,7 @@ const Pagination = class {
51
51
  };
52
52
  // Disable page range, display all the pages
53
53
  if (range === null) {
54
- const p = this._pages.map(p => ({
54
+ const p = this._pages.map((p) => ({
55
55
  type: 'page',
56
56
  value: p,
57
57
  }));
@@ -112,9 +112,11 @@ const Pagination = class {
112
112
  }
113
113
  render() {
114
114
  var _a;
115
- return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map(p => {
115
+ return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map((p) => {
116
116
  if (p.type === 'previous' || p.type === 'next') {
117
- return h("p-pagination-item", { onClick: () => (p.type === 'previous' ? this._previousClick() : this._nextClick()) }, p.value);
117
+ return (h("p-pagination-item", { onClick: () => p.type === 'previous'
118
+ ? this._previousClick()
119
+ : this._nextClick() }, p.value));
118
120
  }
119
121
  if (p.type === 'ellipsis') {
120
122
  return h("p-pagination-item", null, "...");
package/dist/index.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Stencil Component Starter</title> <script type="module" src="/build/paperless.esm.js" data-stencil data-resources-url="/build/" data-stencil-namespace="paperless"></script> <script nomodule="" src="/build/paperless.js" data-stencil></script> </head> <body> <p-button>Buttono</p-button> <script data-build="2022-07-12T12:42:31">
1
+ <!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Stencil Component Starter</title> <script type="module" src="/build/paperless.esm.js" data-stencil data-resources-url="/build/" data-stencil-namespace="paperless"></script> <script nomodule="" src="/build/paperless.js" data-stencil></script> </head> <body> <p-button>Buttono</p-button> <script data-build="2022-07-12T12:52:29">
2
2
  if ('serviceWorker' in navigator && location.protocol !== 'file:') {
3
3
  window.addEventListener('load', function() {
4
4
  navigator.serviceWorker.register('/sw.js')
package/dist/sw.js CHANGED
@@ -27,7 +27,7 @@ self.addEventListener('message', (event) => {
27
27
  self.__precacheManifest = [
28
28
  {
29
29
  "url": "index.html",
30
- "revision": "0d16779c887fe139ff4dbc8078e5f306"
30
+ "revision": "9d42820cc6b9a12e9de87ea8a417fced"
31
31
  },
32
32
  {
33
33
  "url": "build/index.esm.js",
@@ -208,7 +208,7 @@ self.__precacheManifest = [
208
208
  },
209
209
  {
210
210
  "url": "collection/components/molecules/pagination/pagination.component.js",
211
- "revision": "23c7653e1d67fbe87a2077f92f0f2e98"
211
+ "revision": "85f00230ce5445b19eaa911b1bda1891"
212
212
  },
213
213
  {
214
214
  "url": "collection/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "0.1.0-alpha.15",
3
+ "version": "0.1.0-alpha.16",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",