@mcurros2/microm 1.1.164-0 → 1.1.166-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.
package/dist/index.js CHANGED
@@ -1459,7 +1459,7 @@ class $16abd72d1aa9b62d$export$6118e57c65bf19ee {
1459
1459
  await this.#deleteEnabledMenus();
1460
1460
  if (this.#RECORD_PATHS) this.#saveAllRecordedAccess();
1461
1461
  //TODO: explicar por que no envía el token con esta solicitud?
1462
- const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/logoff`, {
1462
+ const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/auth/logoff`, {
1463
1463
  method: 'POST',
1464
1464
  headers: {
1465
1465
  "Content-Type": "application/json; charset=utf-8",
@@ -1487,7 +1487,7 @@ class $16abd72d1aa9b62d$export$6118e57c65bf19ee {
1487
1487
  try {
1488
1488
  await this.#checkAndRefreshToken();
1489
1489
  if (this.#TOKEN !== null && this.#TOKEN.access_token !== '') {
1490
- const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/isloggedin`, {
1490
+ const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/auth/isloggedin`, {
1491
1491
  method: 'GET',
1492
1492
  headers: {
1493
1493
  "Content-Type": "application/json; charset=utf-8",
@@ -1543,7 +1543,7 @@ class $16abd72d1aa9b62d$export$6118e57c65bf19ee {
1543
1543
  try {
1544
1544
  if (this.#RECORD_PATHS) this.#RECORDED_PATHS = {};
1545
1545
  const localDeviceId = await this.#getLocalDeviceId();
1546
- const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/login`, {
1546
+ const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/auth/login`, {
1547
1547
  method: 'POST',
1548
1548
  headers: {
1549
1549
  "Content-Type": "application/json; charset=utf-8"
@@ -1602,7 +1602,7 @@ class $16abd72d1aa9b62d$export$6118e57c65bf19ee {
1602
1602
  async recoveryemail(username) {
1603
1603
  const loginTimeout = new (0, $dF8o7.TimeoutSignal)(this.#LOGIN_TIMEOUT * 4, 'Login request timed out');
1604
1604
  try {
1605
- const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/recoveryemail`, {
1605
+ const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/auth/recoveryemail`, {
1606
1606
  method: 'POST',
1607
1607
  headers: {
1608
1608
  "Content-Type": "application/json; charset=utf-8"
@@ -1632,7 +1632,7 @@ class $16abd72d1aa9b62d$export$6118e57c65bf19ee {
1632
1632
  async recoverpassword(username, password, recoverycode) {
1633
1633
  const loginTimeout = new (0, $dF8o7.TimeoutSignal)(this.#LOGIN_TIMEOUT * 4, 'Login request timed out');
1634
1634
  try {
1635
- const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/recoverpassword`, {
1635
+ const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/auth/recoverpassword`, {
1636
1636
  method: 'POST',
1637
1637
  headers: {
1638
1638
  "Content-Type": "application/json; charset=utf-8"
@@ -1782,7 +1782,7 @@ class $16abd72d1aa9b62d$export$6118e57c65bf19ee {
1782
1782
  if (!this.#TOKEN) throw new Error('Token not found');
1783
1783
  //console.log('Refreshing token');
1784
1784
  const old_token = this.#TOKEN;
1785
- const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/refresh`, {
1785
+ const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/auth/refresh`, {
1786
1786
  method: 'POST',
1787
1787
  headers: {
1788
1788
  "Content-Type": "application/json; charset=utf-8"
@@ -1863,7 +1863,7 @@ class $16abd72d1aa9b62d$export$6118e57c65bf19ee {
1863
1863
  }
1864
1864
  async #submitToAPI(entity_name, parent_keys, values, recordsSelection, action, abort_signal = null, additional_route = null) {
1865
1865
  const extra_route = additional_route !== null ? `/${additional_route}` : '';
1866
- const route = `${this.#API_URL}/${this.#APP_ID}/${entity_name}/${action}${extra_route}`;
1866
+ const route = `${this.#API_URL}/${this.#APP_ID}/ent/${entity_name}/${action}${extra_route}`;
1867
1867
  try {
1868
1868
  await this.#checkAndRefreshToken();
1869
1869
  if (!this.#TOKEN) throw {
@@ -4384,7 +4384,7 @@ const $95e2e1bafd0c20d6$var$defaultProps = {
4384
4384
  autoTrim: true
4385
4385
  };
4386
4386
  const $95e2e1bafd0c20d6$export$2c73285ae9390cec = /*#__PURE__*/ (0, $b4te3$react.forwardRef)(function TextField(props, ref) {
4387
- const { column: column, entityForm: entityForm, validate: validate, validationContainer: validationContainer, maw: maw, required: required, requiredMessage: requiredMessage, maxLength: maxLength, readOnly: readOnly, label: label, placeholder: placeholder, description: description, withAsterisk: withAsterisk, autoFocus: autoFocus, onBlur: onBlur, onChange: onChange, onFocus: onFocus, transform: transform, autoTrim: autoTrim, ...others } = (0, $b4te3$mantinecore.useComponentDefaultProps)('TextField', $95e2e1bafd0c20d6$var$defaultProps, props);
4387
+ const { column: column, entityForm: entityForm, validate: validate, validationContainer: validationContainer, maw: maw, required: required, requiredMessage: requiredMessage, maxLength: maxLength, readOnly: readOnly, label: label, placeholder: placeholder, description: description, withAsterisk: withAsterisk, autoFocus: autoFocus, onBlur: onBlur, onChange: onChange, onFocus: onFocus, transform: transform, autoTrim: autoTrim, iconWidth: iconWidth, ...others } = (0, $b4te3$mantinecore.useComponentDefaultProps)('TextField', $95e2e1bafd0c20d6$var$defaultProps, props);
4388
4388
  (0, $hAMyt.useFieldConfiguration)({
4389
4389
  entityForm: entityForm,
4390
4390
  column: column,
@@ -4444,6 +4444,7 @@ const $95e2e1bafd0c20d6$export$2c73285ae9390cec = /*#__PURE__*/ (0, $b4te3$react
4444
4444
  onBlur: handleOnBlur,
4445
4445
  onChange: handleOnChange,
4446
4446
  onFocus: handleOnFocus,
4447
+ iconWidth: iconWidth && typeof iconWidth === 'string' ? (0, $b4te3$mantinecore.px)(iconWidth) : iconWidth,
4447
4448
  ref: ref
4448
4449
  });
4449
4450
  });