@yoobic/yobi 8.2.0-33 → 8.2.0-34

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 (28) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/{filters-helpers-4a3a446e.js → filters-helpers-5aa63586.js} +2 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/yoo-context-menu-dialog.cjs.entry.js +2 -2
  5. package/dist/cjs/yoo-entity-query-builder.cjs.entry.js +1 -1
  6. package/dist/cjs/yoo-entity-search-filters.cjs.entry.js +1 -1
  7. package/dist/cjs/yoo-form-capture.cjs.entry.js +11 -11
  8. package/dist/cjs/yoo-grid.cjs.entry.js +1 -1
  9. package/dist/collection/components/2.molecules/context-menu-dialog/context-menu-dialog.js +2 -2
  10. package/dist/collection/components/form/form-capture/form-capture.js +12 -12
  11. package/dist/collection/utils/helpers/filters-helpers.js +2 -0
  12. package/dist/design-system/design-system.esm.js +1 -1
  13. package/dist/design-system/{filters-helpers-e37fa627.js → filters-helpers-d4fc3be5.js} +2 -0
  14. package/dist/design-system/yoo-context-menu-dialog.entry.js +2 -2
  15. package/dist/design-system/yoo-entity-query-builder.entry.js +1 -1
  16. package/dist/design-system/yoo-entity-search-filters.entry.js +1 -1
  17. package/dist/design-system/yoo-form-capture.entry.js +11 -11
  18. package/dist/design-system/yoo-grid.entry.js +1 -1
  19. package/dist/esm/design-system.js +1 -1
  20. package/dist/esm/{filters-helpers-e37fa627.js → filters-helpers-d4fc3be5.js} +2 -0
  21. package/dist/esm/loader.js +1 -1
  22. package/dist/esm/yoo-context-menu-dialog.entry.js +2 -2
  23. package/dist/esm/yoo-entity-query-builder.entry.js +1 -1
  24. package/dist/esm/yoo-entity-search-filters.entry.js +1 -1
  25. package/dist/esm/yoo-form-capture.entry.js +11 -11
  26. package/dist/esm/yoo-grid.entry.js +1 -1
  27. package/dist/types/components/form/form-capture/form-capture.d.ts +1 -1
  28. package/package.json +1 -1
@@ -132,12 +132,12 @@ const YooContextMenuDialogComponent = class {
132
132
  ]) : (h("span", { innerHTML: translateMulti(textContent) })));
133
133
  }
134
134
  renderRightActions(item) {
135
- const { subMenu, isToggle, selectedFn, selected, handler, actionableIcon, actionableIcons, icon, iconColor } = item;
135
+ const { subMenu, isToggle, selectedFn, selected, handler, actionableIcon, actionableIcons } = item;
136
136
  return [
137
137
  !!(subMenu === null || subMenu === void 0 ? void 0 : subMenu.length) && h("yoo-icon", { class: "arrows", name: `arrow-${this.openSubMenuOnLeft ? 'left' : 'right'}` }),
138
138
  isToggle && h("yoo-form-toggle", { size: "medium", value: (selectedFn === null || selectedFn === void 0 ? void 0 : selectedFn()) || selected, onInputChanged: () => handler === null || handler === void 0 ? void 0 : handler() }),
139
139
  actionableIcon && h("yoo-icon", { size: (actionableIcon === null || actionableIcon === void 0 ? void 0 : actionableIcon.iconSize) || 'medium', class: "right-aligned", name: actionableIcon.icon, color: actionableIcon.iconColor, onClick: (ev) => this.onActionableIconClick(ev, actionableIcon) }),
140
- actionableIcons === null || actionableIcons === void 0 ? void 0 : actionableIcons.map((action) => h("yoo-icon", { size: action.iconSize || 'medium', class: "right-aligned", name: icon, color: iconColor, onClick: (ev) => this.onActionableIconClick(ev, action) }))
140
+ actionableIcons === null || actionableIcons === void 0 ? void 0 : actionableIcons.map((action) => h("yoo-icon", { size: action.iconSize || 'medium', class: "right-aligned", name: action.icon, color: action.iconColor, onClick: (ev) => this.onActionableIconClick(ev, action) }))
141
141
  ];
142
142
  }
143
143
  renderItemContent(item) {
@@ -2,7 +2,7 @@ import { r as registerInstance, i as createEvent, f as forceUpdate, h, e as Host
2
2
  import { c as FormFieldType } from './index-da54e081.js';
3
3
  import { aE as isPresent, aI as getUUID, t as translate, o as isWeb, af as showActionSheet, _ as getSession, cI as getAuthentication } from './index-60d331ff.js';
4
4
  import { a7 as sum, w as cloneDeep, P as findIndex, $ as flatten } from './lodash-b0ad17f3.js';
5
- import { b as filterIsRadio, a as filterIsAutocomplete, k as filterIsSegement, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, f as filterFromFormField, c as filterRenderFormDynamic, m as mapCustomViewToButton } from './filters-helpers-e37fa627.js';
5
+ import { b as filterIsRadio, a as filterIsAutocomplete, k as filterIsSegement, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, f as filterFromFormField, c as filterRenderFormDynamic, m as mapCustomViewToButton } from './filters-helpers-d4fc3be5.js';
6
6
  import './_commonjsHelpers-f4d11124.js';
7
7
 
8
8
  const entityQueryBuilderCss = ".container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;margin-left:0}.container.expanded{margin-bottom:var(--spacing-16, 1rem)}.container .flex{-ms-flex:1;flex:1}.container yoo-button.margin-left{margin-left:var(--spacing-16, 1rem)}.container yoo-tooltip{margin-left:var(--spacing-08, 0.5rem)}.container .toggle-selected{margin-left:var(--spacing-16, 1rem)}.container .sorts{width:8.5rem;margin-right:var(--spacing-08, 0.5rem);margin-left:var(--spacing-08, 0.5rem)}yoo-banner{margin-bottom:var(--spacing-08, 0.5rem)}.filters-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;padding:0}.filters-container.disabled yoo-button,.filters-container.disabled yoo-form-dynamic{opacity:0.2 !important;pointer-events:none}.filters-container:not(.open){display:none}.filters-container.advanced yoo-form-input-container{padding-bottom:0.75rem}.filters-container.advanced yoo-button{padding-bottom:var(--spacing-04, 0.25rem)}.filters-container.advanced yoo-button yoo-icon.add{color:var(--stable, #adadad)}.filters-container.advanced yoo-button.add-filter{margin-right:var(--spacing-16, 1rem)}.filters-container.advanced yoo-button.margin-right{margin-right:var(--spacing-08, 0.5rem);margin-left:0}.filters-container.advanced yoo-form-input-container.operator{margin:calc(var(--spacing-04, 0.25rem) * -1) var(--spacing-04, 0.25rem) 0 calc(var(--spacing-08, 0.5rem) * -1);padding:0 0.5rem;padding-bottom:0;text-align:center}.filters-container yoo-form-dynamic.fill-width:not(.web){width:100%}:host(.no-padding) yoo-button.filters.margin-left{margin-left:0}:host(.floating) ::slotted(.search-container-inner[slot=before]){width:100%}:host(.floating) .container.expanded{margin-bottom:0}:host(.floating) yoo-context-menu{width:100%}:host(.floating) .header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%;padding:var(--spacing-08, 0.5rem) var(--spacing-16, 1rem) 0}:host(.floating) .header.width-auto{width:auto;cursor:pointer}:host(.floating) .header .title{-ms-flex:1;flex:1;font-weight:bold;font-size:var(--font-size-14, 0.875rem)}:host(.floating) .header .title.app-color{color:var(--app-color, #5a30f4)}:host(.floating) .footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;width:100%;padding:var(--spacing-16, 1rem);-webkit-column-gap:var(--spacing-16, 1rem);-moz-column-gap:var(--spacing-16, 1rem);column-gap:var(--spacing-16, 1rem);border-top:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1)}:host(.floating) .footer .flex{-ms-flex:1;flex:1}:host(.floating) .footer yoo-button{max-width:6rem}:host(.floating) .subfooter{width:100%;padding:var(--spacing-08, 0.5rem);font-size:var(--font-size-12, 0.75rem);text-align:center;border-top:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1);cursor:pointer}:host(.floating) .filters-container.open{position:absolute;left:21rem;width:15rem;padding:0;background:var(--light, #ffffff);border:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1);-webkit-box-shadow:var(--shadow-01, 0 0.0625rem 0.25rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-01, 0 0.0625rem 0.25rem 0 rgba(0, 0, 0, 0.1))}:host(.floating) .filters-container.open yoo-form-dynamic{width:100%;max-height:calc(100vh - 30.25rem);margin:auto;overflow-y:auto;}:host(.floating) .filters-container.open yoo-form-dynamic::-webkit-scrollbar{width:var(--spacing-04, 0.25rem);height:var(--spacing-04, 0.25rem)}:host(.floating) .filters-container.open yoo-form-dynamic::-webkit-scrollbar-track{background-color:transparent;border-radius:var(--border-radius-04, 0.25rem)}:host(.floating) .filters-container.open yoo-form-dynamic::-webkit-scrollbar-thumb{background-color:transparent;border-radius:var(--border-radius-04, 0.25rem)}";
@@ -3,7 +3,7 @@ import { c as FormFieldType } from './index-da54e081.js';
3
3
  import { t as translate, R as isNullOrUndefined, T as translateMulti } from './index-60d331ff.js';
4
4
  import { c as compact, p as isString, s as isObject, v as isEmpty, l as isNumber } from './lodash-b0ad17f3.js';
5
5
  import { b as getAppContext } from './common-helpers-7760f0f6.js';
6
- import { f as filterFromFormField, a as filterIsAutocomplete, b as filterIsRadio, c as filterRenderFormDynamic, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, j as filterCleanupNewField } from './filters-helpers-e37fa627.js';
6
+ import { f as filterFromFormField, a as filterIsAutocomplete, b as filterIsRadio, c as filterRenderFormDynamic, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, j as filterCleanupNewField } from './filters-helpers-d4fc3be5.js';
7
7
  import './_commonjsHelpers-f4d11124.js';
8
8
 
9
9
  const entitySearchFiltersCss = ":host .outer-container{padding:1rem 1rem 0 1rem}:host .outer-container .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;height:1.3125rem;margin-top:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-700, 700);font-size:var(--font-size-18, 1.125rem)}:host .outer-container .menu-title{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;margin-top:1.2rem;font-size:var(--font-size-16, 1rem)}:host .outer-container .menu{margin:0;padding:0;font-size:100%;vertical-align:baseline;list-style:none outside none;background:none repeat scroll 0 0 transparent;border:0 none;outline:0 none;-webkit-tap-highlight-color:transparent;margin:0;padding:0 0 0.3125rem;list-style:none}:host .outer-container .menu .menu-item{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:100%;min-height:2.75rem;padding:0 1rem 0 0;font-weight:var(--font-weight-400, 400)}:host .outer-container .menu .menu-item div{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-item-align:center;align-self:center}:host .outer-container .menu .menu-item div .menu-item-title{width:100%;margin-left:var(--spacing-08, 0.5rem)}:host .outer-container .menu .border{width:100%;height:0;border-top:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1)}:host .outer-container .menu{margin:0 0.5rem}:host .outer-container .menu .menu-item{padding:0;cursor:pointer}:host .outer-container .menu .menu-item .menu-item-title{width:100%}:host .outer-container .menu .menu-item yoo-form-checkbox{padding-right:var(--spacing-04, 0.25rem)}:host .outer-container yoo-form-input-container{margin-top:0.8rem}:host .outer-container yoo-form-dynamic.margin-top{margin-top:0.8rem}:host .outer-container .filter-container.flex{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-top:0.8rem}:host .outer-container .filter-container.flex .menu-title{-ms-flex:1;flex:1;margin-top:0}:host .outer-container .filter-container.flex .menu{margin:0;padding-bottom:0}:host(.web) .outer-container{width:80%;max-width:500px;margin:auto}";
@@ -37,7 +37,7 @@ const YooFormCaptureComponent = class {
37
37
  this.min = 1;
38
38
  this.max = 1;
39
39
  this.validators = [];
40
- this.isUploadingPhoto = true;
40
+ this.isProcessingPhoto = true;
41
41
  this.isSelectorMode = false;
42
42
  this.selectedIndex = [];
43
43
  this.overflowOffset = 4;
@@ -72,15 +72,7 @@ const YooFormCaptureComponent = class {
72
72
  this.emitOnUpdated = false;
73
73
  }
74
74
  async onPhotoUploadComplete() {
75
- this.isUploadingPhoto = false;
76
75
  this.currentUploadingStatus = translate('RECOGNIZINGIMAGES');
77
- if (this.progressBarRef && this.progressBarRef.length > 0) {
78
- this.progressBarRef.forEach((ref) => {
79
- if (ref) {
80
- ref.value = 100;
81
- }
82
- });
83
- }
84
76
  }
85
77
  async onPhotoUploadProgressUpdate(progress, index) {
86
78
  if (this.progressBarRef && this.progressBarRef[index]) {
@@ -101,6 +93,14 @@ const YooFormCaptureComponent = class {
101
93
  });
102
94
  }
103
95
  async processImageRecognitionResults(imageRecognitionResults, priceRecognitionResults) {
96
+ this.isProcessingPhoto = false;
97
+ if (this.progressBarRef && this.progressBarRef.length > 0) {
98
+ this.progressBarRef.forEach((ref) => {
99
+ if (ref) {
100
+ ref.value = 100;
101
+ }
102
+ });
103
+ }
104
104
  if (!this.imageRecoCancelled) {
105
105
  if (this.progressBarMainRef) {
106
106
  this.progressBarMainRef.progressAnimationDuration = 0.5;
@@ -1010,7 +1010,7 @@ const YooFormCaptureComponent = class {
1010
1010
  return;
1011
1011
  }
1012
1012
  this.imageRecoCancelled = false;
1013
- this.isUploadingPhoto = true;
1013
+ this.isProcessingPhoto = true;
1014
1014
  if (this.isValueValid() && this.algorithm && !this.isProcessing) {
1015
1015
  // emit image recognition event
1016
1016
  this.currentUploadingStatus = translate('UPLOADINGPHOTOS');
@@ -1544,7 +1544,7 @@ const YooFormCaptureComponent = class {
1544
1544
  return (h("div", { class: "progressbar-wrapper" }, mainProgress
1545
1545
  ? [
1546
1546
  this.currentUploadingStatus && (isUndefined(index) || !this.multiple) && h("div", { class: "text app-color" }, this.currentUploadingStatus),
1547
- !this.isUploadingPhoto && (h("div", { class: "main-wrapper" }, h("yoo-progress-bar", { value: 100, hideProgressValue: true, listenToProgress: true, listenToCompleteProgress: true, disableBackProgressAnimation: true, progressAnimationDuration: this.progressTime, onValueChanged: (ev) => onProgressUpdating(ev), onProgressFinished: (ev) => onProgressFinished(ev), ref: (el) => (this.progressBarMainRef = el) })))
1547
+ !this.isProcessingPhoto && (h("div", { class: "main-wrapper" }, h("yoo-progress-bar", { value: 100, hideProgressValue: true, listenToProgress: true, listenToCompleteProgress: true, disableBackProgressAnimation: true, progressAnimationDuration: this.progressTime, onValueChanged: (ev) => onProgressUpdating(ev), onProgressFinished: (ev) => onProgressFinished(ev), ref: (el) => (this.progressBarMainRef = el) })))
1548
1548
  ]
1549
1549
  : [
1550
1550
  h("yoo-progress-bar", { class: "photo-progress app-color", value: 0, hideProgressValue: true, progressAnimationDuration: 0.5, ref: (el) => {
@@ -7,7 +7,7 @@ import './index-bcf5e064.js';
7
7
  import { g as getButton } from './button.factory-07402056.js';
8
8
  import { a as assignPressActions } from './index-8e7c8c76.js';
9
9
  import { f as querySelectorAllDeep, u as hideShowSearchBar, v as getNextValueInArray, b as getAppContext } from './common-helpers-7760f0f6.js';
10
- import { m as mapCustomViewToButton, l as isKanbanColumnField } from './filters-helpers-e37fa627.js';
10
+ import { m as mapCustomViewToButton, l as isKanbanColumnField } from './filters-helpers-d4fc3be5.js';
11
11
  import { s as setValidator, a as setValueAndValidateInput } from './form-input-helpers-21c08c10.js';
12
12
  import { g as getRenderer } from './grid-renderers-9a86a81b.js';
13
13
  import { I as ItemSlidingType } from './item-sliding.interface-85f6790e.js';
@@ -70,7 +70,7 @@ export declare class YooFormCaptureComponent implements IFormCapture {
70
70
  fetchData: EventEmitter<IGridSearch>;
71
71
  validity: boolean;
72
72
  isProcessing: boolean;
73
- isUploadingPhoto: boolean;
73
+ isProcessingPhoto: boolean;
74
74
  showImageLoader: boolean;
75
75
  imageRecognitionResults: {
76
76
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.2.0-33",
3
+ "version": "8.2.0-34",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",