@headless-adminapp/fluent 0.0.17-alpha.1 → 0.0.17-alpha.3

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.
@@ -85,7 +85,6 @@ exports.formValidator = (0, lodash_1.memoize)(function formValidator(attributes)
85
85
  const validator = (0, exports.generateValidationSchema)(attributes);
86
86
  const resolver = (0, yup_1.yupResolver)(validator);
87
87
  const result = yield resolver(values, context, options);
88
- // console.log(result);
89
88
  return result;
90
89
  });
91
90
  }, (attributes) => JSON.stringify({ attributes }));
@@ -51,7 +51,6 @@ const PageEntityFormDesktopContainer = () => {
51
51
  if (recordId && !record) {
52
52
  return ((0, jsx_runtime_1.jsx)(PageBroken_1.PageBroken, { title: "Record not found", message: "Requested record not found in system or you may not have enought permission." }));
53
53
  }
54
- // console.log('render');
55
54
  return ((0, jsx_runtime_1.jsxs)("div", { style: {
56
55
  display: 'flex',
57
56
  flex: 1,
@@ -18,7 +18,6 @@ function getRelatedItems(currentSchema, schemas) {
18
18
  if (!(0, utils_1.isLookupAttribute)(attribute)) {
19
19
  return null;
20
20
  }
21
- // console.log('temp.a ', attribute);
22
21
  if (attribute.entity !== currentSchema.logicalName) {
23
22
  return null;
24
23
  }
@@ -57,7 +57,7 @@ function SubgridControl(props) {
57
57
  }
58
58
  if (view.logicalName !== schema.logicalName) {
59
59
  if (isLoadingView) {
60
- console.log('missmatched view', view, schema);
60
+ console.warn('missmatched view', view, schema);
61
61
  return loadingContent;
62
62
  }
63
63
  return brokenContent;
@@ -1,4 +1,4 @@
1
1
  import { ControlProps } from './types';
2
2
  export interface CurrencyControlProps extends ControlProps<number> {
3
3
  }
4
- export declare function CurrencyControl({ value, onChange, id, name, onBlur, onFocus, error, disabled, placeholder, autoFocus, borderOnFocusOnly, readOnly, }: CurrencyControlProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function CurrencyControl({ value, onChange, id, name, onBlur, onFocus, disabled, placeholder, autoFocus, readOnly, }: CurrencyControlProps): import("react/jsx-runtime").JSX.Element;
@@ -3,9 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CurrencyControl = CurrencyControl;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_components_1 = require("@fluentui/react-components");
6
- function CurrencyControl({ value, onChange, id, name, onBlur, onFocus, error, disabled, placeholder, autoFocus, borderOnFocusOnly, readOnly, }) {
6
+ function CurrencyControl({ value, onChange, id, name, onBlur, onFocus,
7
+ // error,
8
+ disabled, placeholder, autoFocus,
9
+ // borderOnFocusOnly,
10
+ readOnly, }) {
7
11
  var _a;
8
- console.log('CurrencyControl', value);
9
12
  return ((0, jsx_runtime_1.jsx)(react_components_1.Input, { placeholder: placeholder, id: id, autoFocus: autoFocus, name: name, value: (_a = value === null || value === void 0 ? void 0 : value.toString()) !== null && _a !== void 0 ? _a : '', onChange: (e) => onChange === null || onChange === void 0 ? void 0 : onChange(e.target.value ? Number(e.target.value) : null), onBlur: () => onBlur === null || onBlur === void 0 ? void 0 : onBlur(), appearance: "filled-darker", onFocus: () => onFocus === null || onFocus === void 0 ? void 0 : onFocus(),
10
13
  // invalid={error}
11
14
  // icon={<div>₹</div>}
@@ -116,7 +116,6 @@ const LookupControlMd = ({ value, onChange, id, name, onBlur, onFocus, placehold
116
116
  open: open && !value && !readOnly && !disabled, value: !value ? searchText : '', onOpenChange: (e, data) => setOpen(data.open), onChange: (e) => {
117
117
  setSearchText(e.target.value);
118
118
  }, onOptionSelect: (e, item) => {
119
- console.log('onOptionSelect', item);
120
119
  const _item = data === null || data === void 0 ? void 0 : data.records.find((x) => String(x[schema.idAttribute]) === item.optionValue);
121
120
  handleChange(_item !== null && _item !== void 0 ? _item : null);
122
121
  }, disableAutoFocus: true, onBlur: onBlur, onFocus: onFocus, id: id, autoFocus: autoFocus, children: [data === null || data === void 0 ? void 0 : data.records.map((item) => ((0, jsx_runtime_1.jsx)(react_components_1.Option, { value: item[schema.idAttribute], className: (0, react_components_1.mergeClasses)(styles.option), text: item[schema.primaryAttribute], children: (0, jsx_runtime_1.jsx)(RecordCard_1.RecordCard, { cardView: view === null || view === void 0 ? void 0 : view.experience.card, record: item, schema: schema }) }, item[schema.idAttribute]))), !isLoading && !(data === null || data === void 0 ? void 0 : data.records.length) && ((0, jsx_runtime_1.jsx)("div", { style: {
@@ -135,7 +135,6 @@ const LookupControlMd = ({ value, onChange, id, name, onBlur, onFocus, placehold
135
135
  }, onChange: (e) => {
136
136
  setSearchText(e.target.value);
137
137
  }, onOptionSelect: (e, item) => {
138
- console.log('onOptionSelect', item);
139
138
  const _item = data === null || data === void 0 ? void 0 : data.records.find((x) => String(x[schema.idAttribute]) === item.optionValue);
140
139
  if (!_item)
141
140
  return;
@@ -60,7 +60,6 @@ const FormSection = ({ title, children, columnCount, fullHeight, labelPosition,
60
60
  spanTemplates['--section-item-spacer-1'] = 'none';
61
61
  spanTemplates['--section-item-spacer-2'] = 'none';
62
62
  }
63
- // console.log('fsmm', divSize.width, minWidthRequired);
64
63
  return ((0, jsx_runtime_1.jsx)("div", { ref: divRef, style: {
65
64
  boxShadow: react_components_1.tokens.shadow2,
66
65
  borderRadius: react_components_1.tokens.borderRadiusMedium,
@@ -27,7 +27,6 @@ exports.FormTab = FormTab;
27
27
  const FormTabInternal = ({ children, value, fullHeight, columnCount, columnWidths, }) => {
28
28
  const divRef = (0, react_1.useRef)(null);
29
29
  const divSize = (0, hooks_1.useElementSize)(divRef);
30
- // console.log('dd', divSize.width);
31
30
  const padding = 0;
32
31
  // const columnCount = 2;
33
32
  const minSectionWidth = 392;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@headless-adminapp/fluent",
3
- "version": "0.0.17-alpha.1",
3
+ "version": "0.0.17-alpha.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -26,5 +26,5 @@
26
26
  "keywords": [],
27
27
  "author": "",
28
28
  "license": "ISC",
29
- "gitHead": "86b3b0f6764173ba69e71d81ef613ec570ae4a35"
29
+ "gitHead": "f6ce162167fabc3cbac101038b157ddd22455a4f"
30
30
  }
package/types/index.d.ts CHANGED
@@ -1,30 +1,30 @@
1
1
  declare module '@headless-adminapp/icons/types' {
2
2
  interface IconSet {
3
- SignOut: Icon;
3
+ Mail: Icon;
4
+ Phone: Icon;
5
+ Search: Icon;
6
+ Eye: Icon;
7
+ EyeOff: Icon;
8
+ Calendar: Icon;
9
+ ArrowLeft: Icon;
10
+ ArrowRight: Icon;
11
+ ArrowDown: Icon;
12
+ ArrowUp: Icon;
13
+ ChevronDown: Icon;
14
+ ChevronUp: Icon;
4
15
  Close: Icon;
5
16
  Add: Icon;
6
17
  Edit: Icon;
7
18
  Delete: Icon;
8
19
  Refresh: Icon;
9
- ArrowLeft: Icon;
10
- ArrowRight: Icon;
11
20
  MoreVertical: Icon;
12
21
  MoreHorizontal: Icon;
13
- Search: Icon;
14
- Mail: Icon;
15
- Phone: Icon;
16
- Eye: Icon;
17
- EyeOff: Icon;
18
22
  Error: Icon;
19
23
  Settings: Icon;
20
- Calendar: Icon;
24
+ SignOut: Icon;
21
25
  EditColumns: Icon;
22
- ArrowDown: Icon;
23
- ArrowUp: Icon;
24
26
  Filter: Icon;
25
27
  FilterDismiss: Icon;
26
- ChevronDown: Icon;
27
- ChevronUp: Icon;
28
28
  ListLtr: Icon;
29
29
  ListRtl: Icon;
30
30
  }