@paperless/core 1.50.0 → 1.51.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.
@@ -40,6 +40,10 @@ export declare class Datepicker {
40
40
  * The display & parse format to use
41
41
  */
42
42
  format: string;
43
+ /**
44
+ * Hides the icon when filled
45
+ */
46
+ isIconHiddenWhenFilled: boolean;
43
47
  /**
44
48
  * The size of the input group used by the datepicker
45
49
  */
@@ -316,6 +316,10 @@ export namespace Components {
316
316
  * The helper of the input group used by the datepicker
317
317
  */
318
318
  "helper": string;
319
+ /**
320
+ * Hides the icon when filled
321
+ */
322
+ "isIconHiddenWhenFilled": boolean;
319
323
  /**
320
324
  * The label of the input group used by the datepicker
321
325
  */
@@ -2449,6 +2453,10 @@ declare namespace LocalJSX {
2449
2453
  * The helper of the input group used by the datepicker
2450
2454
  */
2451
2455
  "helper"?: string;
2456
+ /**
2457
+ * Hides the icon when filled
2458
+ */
2459
+ "isIconHiddenWhenFilled"?: boolean;
2452
2460
  /**
2453
2461
  * The label of the input group used by the datepicker
2454
2462
  */
package/hydrate/index.js CHANGED
@@ -17904,6 +17904,7 @@ class Datepicker {
17904
17904
  this.disableWeekends = false;
17905
17905
  this.mode = 'day';
17906
17906
  this.format = 'dd-MM-yyyy';
17907
+ this.isIconHiddenWhenFilled = false;
17907
17908
  this.size = 'medium';
17908
17909
  this.prefix = undefined;
17909
17910
  this.label = undefined;
@@ -17987,7 +17988,7 @@ class Datepicker {
17987
17988
  this.parseValue(this.value);
17988
17989
  }
17989
17990
  render() {
17990
- return (hAsync(Host, { class: "p-datepicker" }, hAsync("p-dropdown", { disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, hAsync("p-input-group", { slot: "trigger", icon: "calendar", iconPosition: "start", size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, disabled: this.disabled, focused: this._showDropdown }, hAsync("input", { slot: "input", type: "text", placeholder: this.placeholder, value: this._getFormattedDate(), class: "p-input cursor-pointer", onFocus: () => this._onFocus(), onBlur: (ev) => this._onBlur(ev), onInput: (ev) => this._onInput(ev) })), hAsync("div", { slot: "items" }, hAsync("p-calendar", { variant: "embedded", value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, mode: this.mode })))));
17991
+ return (hAsync(Host, { class: "p-datepicker" }, hAsync("p-dropdown", { disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, hAsync("p-input-group", { slot: "trigger", icon: this.isIconHiddenWhenFilled && !!this._value ? null : 'calendar', iconPosition: "start", size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, disabled: this.disabled, focused: this._showDropdown }, hAsync("input", { slot: "input", type: "text", placeholder: this.placeholder, value: this._getFormattedDate(), class: "p-input cursor-pointer", onFocus: () => this._onFocus(), onBlur: (ev) => this._onBlur(ev), onInput: (ev) => this._onInput(ev) })), hAsync("div", { slot: "items" }, hAsync("p-calendar", { variant: "embedded", value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, mode: this.mode })))));
17991
17992
  }
17992
17993
  documentClickHandler({ target }) {
17993
17994
  if (!this._showDropdown || childOf(target, this._el)) {
@@ -18076,6 +18077,7 @@ class Datepicker {
18076
18077
  "disableWeekends": [4, "disable-weekends"],
18077
18078
  "mode": [1],
18078
18079
  "format": [1],
18080
+ "isIconHiddenWhenFilled": [4, "is-icon-hidden-when-filled"],
18079
18081
  "size": [1],
18080
18082
  "prefix": [1],
18081
18083
  "label": [1],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "1.50.0",
3
+ "version": "1.51.0",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",