@paperless/core 1.54.1 → 1.54.2
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 +11 -0
- package/dist/build/p-210a2c88.entry.js +2 -0
- package/dist/{paperless/p-7dc32e95.entry.js.map → build/p-210a2c88.entry.js.map} +1 -1
- package/dist/{paperless/p-8414aef5.entry.js → build/p-be4c976c.entry.js} +2 -2
- package/dist/build/p-be4c976c.entry.js.map +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +7 -3
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +1 -1
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/atoms/button/button.component.js +25 -3
- package/dist/collection/components/atoms/button/button.component.js.map +1 -1
- package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -1
- package/dist/components/button.component.js +8 -3
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/table-cell.component.js +1 -1
- package/dist/components/table-cell.component.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-button_3.entry.js +7 -3
- package/dist/esm/p-button_3.entry.js.map +1 -1
- package/dist/esm/p-floating-menu-container_8.entry.js +1 -1
- package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-210a2c88.entry.js +2 -0
- package/dist/{build/p-7dc32e95.entry.js.map → paperless/p-210a2c88.entry.js.map} +1 -1
- package/dist/{build/p-8414aef5.entry.js → paperless/p-be4c976c.entry.js} +2 -2
- package/dist/paperless/p-be4c976c.entry.js.map +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/atoms/button/button.component.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/hydrate/index.js +9 -4
- package/package.json +1 -1
- package/dist/build/p-7dc32e95.entry.js +0 -2
- package/dist/build/p-8414aef5.entry.js.map +0 -1
- package/dist/paperless/p-7dc32e95.entry.js +0 -2
- package/dist/paperless/p-8414aef5.entry.js.map +0 -1
|
@@ -2,6 +2,10 @@ import { EventEmitter } from '../../../stencil-public-runtime';
|
|
|
2
2
|
import { RotateOptions } from '../../../types/tailwind';
|
|
3
3
|
import { IconFlipOptions, IconVariant } from '../icon/icon.component';
|
|
4
4
|
export declare class Button {
|
|
5
|
+
/**
|
|
6
|
+
* The type of the button
|
|
7
|
+
*/
|
|
8
|
+
as: 'a' | 'button';
|
|
5
9
|
/**
|
|
6
10
|
* The variant of the button
|
|
7
11
|
*/
|
|
@@ -124,6 +124,10 @@ export namespace Components {
|
|
|
124
124
|
"variant": 'modal' | 'drawer';
|
|
125
125
|
}
|
|
126
126
|
interface PButton {
|
|
127
|
+
/**
|
|
128
|
+
* The type of the button
|
|
129
|
+
*/
|
|
130
|
+
"as": 'a' | 'button';
|
|
127
131
|
/**
|
|
128
132
|
* Wether to show a chevron or not
|
|
129
133
|
*/
|
|
@@ -2274,6 +2278,10 @@ declare namespace LocalJSX {
|
|
|
2274
2278
|
"variant"?: 'modal' | 'drawer';
|
|
2275
2279
|
}
|
|
2276
2280
|
interface PButton {
|
|
2281
|
+
/**
|
|
2282
|
+
* The type of the button
|
|
2283
|
+
*/
|
|
2284
|
+
"as"?: 'a' | 'button';
|
|
2277
2285
|
/**
|
|
2278
2286
|
* Wether to show a chevron or not
|
|
2279
2287
|
*/
|
package/hydrate/index.js
CHANGED
|
@@ -5984,6 +5984,7 @@ class Button {
|
|
|
5984
5984
|
constructor(hostRef) {
|
|
5985
5985
|
registerInstance(this, hostRef);
|
|
5986
5986
|
this.onClick = createEvent(this, "onClick", 3);
|
|
5987
|
+
this.as = 'button';
|
|
5987
5988
|
this.variant = 'primary';
|
|
5988
5989
|
this.underline = false;
|
|
5989
5990
|
this.href = undefined;
|
|
@@ -6002,6 +6003,7 @@ class Button {
|
|
|
6002
6003
|
this.inheritText = false;
|
|
6003
6004
|
}
|
|
6004
6005
|
render() {
|
|
6006
|
+
var _a;
|
|
6005
6007
|
let loaderColor = 'white';
|
|
6006
6008
|
switch (this.variant) {
|
|
6007
6009
|
case 'secondary':
|
|
@@ -6011,14 +6013,16 @@ class Button {
|
|
|
6011
6013
|
loaderColor = 'indigo';
|
|
6012
6014
|
break;
|
|
6013
6015
|
}
|
|
6014
|
-
const VariableTag = this.variant === 'text' ?
|
|
6015
|
-
|
|
6016
|
+
const VariableTag = this.variant === 'text' || ((_a = this.href) === null || _a === void 0 ? void 0 : _a.length) || this.as === 'a'
|
|
6017
|
+
? 'a'
|
|
6018
|
+
: 'button';
|
|
6019
|
+
return (hAsync(Host, { class: `p-button size-${this.size} ${this.iconOnly && 'has-icon-only'} ${this.chevron && 'has-chevron'}` }, hAsync(VariableTag, { class: `variant-${this.variant} icon-position-${this.iconPosition} chevron-position-${this.chevronPosition} ${this.inheritText && 'should-inherit-text'} ${this.underline && 'has-underline'}`, disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target }, this.chevron && this.chevronPosition === 'start' && (hAsync("p-icon", { class: 'chevron', variant: 'chevron', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
|
|
6016
6020
|
this.iconPosition === 'start' &&
|
|
6017
6021
|
!(this.iconOnly && this.loading) &&
|
|
6018
6022
|
this._getIcon(), hAsync("slot", null), this.icon &&
|
|
6019
6023
|
this.iconPosition === 'end' &&
|
|
6020
6024
|
!(this.iconOnly && this.loading) &&
|
|
6021
|
-
this._getIcon(), this.loading && hAsync("p-loader", { color: loaderColor }), this.chevron && this.chevronPosition === 'end' && (hAsync("p-icon", { class:
|
|
6025
|
+
this._getIcon(), this.loading && hAsync("p-loader", { color: loaderColor }), this.chevron && this.chevronPosition === 'end' && (hAsync("p-icon", { class: 'chevron', variant: 'chevron', rotate: this.chevron === 'up' ? 180 : 0 })))));
|
|
6022
6026
|
}
|
|
6023
6027
|
handleClick(ev) {
|
|
6024
6028
|
if (this.loading || this.disabled) {
|
|
@@ -6038,6 +6042,7 @@ class Button {
|
|
|
6038
6042
|
"$flags$": 4,
|
|
6039
6043
|
"$tagName$": "p-button",
|
|
6040
6044
|
"$members$": {
|
|
6045
|
+
"as": [1],
|
|
6041
6046
|
"variant": [1],
|
|
6042
6047
|
"underline": [4],
|
|
6043
6048
|
"href": [1],
|
|
@@ -22384,7 +22389,7 @@ class Table {
|
|
|
22384
22389
|
}; }
|
|
22385
22390
|
}
|
|
22386
22391
|
|
|
22387
|
-
const tableCellComponentCss = ".gap-4{gap:1rem!important}*{box-sizing:border-box}p-table-cell{align-items:center;gap:1rem}.static{position:static!important}.flex{display:flex!important}.table-cell{display:table-cell!important}.
|
|
22392
|
+
const tableCellComponentCss = ".gap-4{gap:1rem!important}*{box-sizing:border-box}p-table-cell{align-items:center;gap:1rem}.static{position:static!important}.flex{display:flex!important}.table-cell{display:table-cell!important}.h-6{height:1.5rem!important}.w-full{width:100%!important}.flex-1{flex:1 1 0%!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.rounded{border-radius:.25rem!important}";
|
|
22388
22393
|
|
|
22389
22394
|
/*
|
|
22390
22395
|
With this, we shall hack the system in ways no one would ever have thought.
|