@carbonorm/carbonreact 3.5.4 → 3.6.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.
@@ -46,6 +46,7 @@ var args = {
46
46
  // parse command line arguments
47
47
  for (var i = 2; i < process.argv.length; i++) {
48
48
  var arg = process.argv[i];
49
+ // noinspection FallThroughInSwitchStatementJS
49
50
  switch (arg) {
50
51
  case '--input':
51
52
  case '-i':
@@ -66,7 +67,6 @@ for (var i = 2; i < process.argv.length; i++) {
66
67
  console.log(c.cyan('--output or -o: Output directory'));
67
68
  console.log(c.cyan('--verbose or -v: Enable verbose mode'));
68
69
  process.exit(0);
69
- break;
70
70
  default:
71
71
  console.error("Unknown argument: ".concat(arg));
72
72
  process.exit(1);
@@ -15,6 +15,7 @@ for (let i = 2; i < process.argv.length; i++) {
15
15
 
16
16
  const arg = process.argv[i];
17
17
 
18
+ // noinspection FallThroughInSwitchStatementJS
18
19
  switch (arg) {
19
20
  case '--input':
20
21
  case '-i':
@@ -35,7 +36,6 @@ for (let i = 2; i < process.argv.length; i++) {
35
36
  console.log(c.cyan('--output or -o: Output directory'));
36
37
  console.log(c.cyan('--verbose or -v: Enable verbose mode'));
37
38
  process.exit(0);
38
- break;
39
39
  default:
40
40
  console.error(`Unknown argument: ${arg}`);
41
41
  process.exit(1);
@@ -1,4 +1,4 @@
1
- import { Component, ReactNode } from 'react';
1
+ import { Component, Context, ReactElement, ReactNode } from 'react';
2
2
  import 'react-toastify/dist/ReactToastify.min.css';
3
3
  import { iRestfulObjectArrayTypes } from "variables/C6";
4
4
  export interface iCarbonReactState {
@@ -10,13 +10,13 @@ export interface iCarbonReactState {
10
10
  }
11
11
  export declare const initialRequiredCarbonORMState: iCarbonReactState;
12
12
  export declare const initialCarbonReactState: iCarbonReactState & iRestfulObjectArrayTypes;
13
- export declare function isJsonString(str: any): boolean;
13
+ export declare function isJsonString(str: string): boolean;
14
14
  declare const CarbonReact: {
15
15
  new <P = {}, S = {}>(props: any): {
16
+ context: Context<S & iCarbonReactState>;
16
17
  shouldComponentUpdate(nextProps: Readonly<any>, nextState: Readonly<iCarbonReactState>, _nextContext: any): boolean;
17
18
  componentDidUpdate(_prevProps: Readonly<any>, _prevState: Readonly<iCarbonReactState>, _snapshot?: any): void;
18
- render(): import("react/jsx-runtime").JSX.Element;
19
- context: unknown;
19
+ render(): ReactElement;
20
20
  setState<K extends keyof iCarbonReactState | keyof S>(state: (S & iCarbonReactState) | ((prevState: Readonly<S & iCarbonReactState>, props: Readonly<{
21
21
  children?: ReactNode | ReactNode[];
22
22
  shouldStatePersist?: boolean | undefined;
@@ -63,6 +63,6 @@ declare const CarbonReact: {
63
63
  lastLocation: string;
64
64
  whyDidYouRender: boolean;
65
65
  getState<S_1>(): S_1;
66
- contextType?: import("react").Context<any> | undefined;
66
+ contextType?: Context<any> | undefined;
67
67
  };
68
68
  export default CarbonReact;
@@ -1,10 +1,10 @@
1
- import { tC6Tables, tWsLiveUpdate } from "@carbonorm/carbonnode";
1
+ import { tC6Tables, tC6RestApi } from "@carbonorm/carbonnode";
2
2
  export interface iCarbonWebSocketProps {
3
3
  url?: string;
4
4
  timeoutSeconds?: number;
5
5
  heartbeatSeconds?: number;
6
6
  TABLES?: tC6Tables;
7
- WsLiveUpdates?: tWsLiveUpdate;
7
+ WsLiveUpdates?: tC6RestApi;
8
8
  }
9
9
  /**
10
10
  * @function connect
@@ -116,8 +116,8 @@
116
116
  **/
117
117
  /* override the !default vars with the values we set above */
118
118
  /*!
119
- * Bootstrap v5.3.2 (https://getbootstrap.com/)
120
- * Copyright 2011-2023 The Bootstrap Authors
119
+ * Bootstrap v5.3.3 (https://getbootstrap.com/)
120
+ * Copyright 2011-2024 The Bootstrap Authors
121
121
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
122
122
  */
123
123
  :root,
@@ -3301,6 +3301,9 @@ textarea.Qfp5feW {
3301
3301
  .lWxOE4r:checked + .DNeWg-T:focus-visible, :not(.lWxOE4r) + .DNeWg-T:active:focus-visible, .DNeWg-T:first-child:active:focus-visible, .DNeWg-T.aPhrQ2f:focus-visible, .DNeWg-T.DPkZ-6y:focus-visible {
3302
3302
  box-shadow: var(--bs-btn-focus-box-shadow);
3303
3303
  }
3304
+ .lWxOE4r:checked:focus-visible + .DNeWg-T {
3305
+ box-shadow: var(--bs-btn-focus-box-shadow);
3306
+ }
3304
3307
  .DNeWg-T:disabled, .DNeWg-T.FoFyxjp, fieldset:disabled .DNeWg-T {
3305
3308
  color: var(--bs-btn-disabled-color);
3306
3309
  pointer-events: none;
@@ -4897,12 +4900,11 @@ textarea.Qfp5feW {
4897
4900
  --bs-accordion-btn-padding-y: 1rem;
4898
4901
  --bs-accordion-btn-color: var(--bs-body-color);
4899
4902
  --bs-accordion-btn-bg: var(--bs-accordion-bg);
4900
- --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
4903
+ --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
4901
4904
  --bs-accordion-btn-icon-width: 1.25rem;
4902
4905
  --bs-accordion-btn-icon-transform: rotate(-180deg);
4903
4906
  --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
4904
- --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23052c65'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
4905
- --bs-accordion-btn-focus-border-color: #86b7fe;
4907
+ --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052c65' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
4906
4908
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
4907
4909
  --bs-accordion-body-padding-x: 1.25rem;
4908
4910
  --bs-accordion-body-padding-y: 1rem;
@@ -4960,7 +4962,6 @@ textarea.Qfp5feW {
4960
4962
  }
4961
4963
  .EN-AC5F:focus {
4962
4964
  z-index: 3;
4963
- border-color: var(--bs-accordion-btn-focus-border-color);
4964
4965
  outline: 0;
4965
4966
  box-shadow: var(--bs-accordion-btn-focus-box-shadow);
4966
4967
  }
@@ -4978,7 +4979,7 @@ textarea.Qfp5feW {
4978
4979
  border-top-left-radius: var(--bs-accordion-border-radius);
4979
4980
  border-top-right-radius: var(--bs-accordion-border-radius);
4980
4981
  }
4981
- .S9gEeh7:first-of-type .EN-AC5F {
4982
+ .S9gEeh7:first-of-type > .unMRrjv .EN-AC5F {
4982
4983
  border-top-left-radius: var(--bs-accordion-inner-border-radius);
4983
4984
  border-top-right-radius: var(--bs-accordion-inner-border-radius);
4984
4985
  }
@@ -4989,11 +4990,11 @@ textarea.Qfp5feW {
4989
4990
  border-bottom-right-radius: var(--bs-accordion-border-radius);
4990
4991
  border-bottom-left-radius: var(--bs-accordion-border-radius);
4991
4992
  }
4992
- .S9gEeh7:last-of-type .EN-AC5F.vG7qVGd {
4993
+ .S9gEeh7:last-of-type > .unMRrjv .EN-AC5F.vG7qVGd {
4993
4994
  border-bottom-right-radius: var(--bs-accordion-inner-border-radius);
4994
4995
  border-bottom-left-radius: var(--bs-accordion-inner-border-radius);
4995
4996
  }
4996
- .S9gEeh7:last-of-type ._7hNMzs9 {
4997
+ .S9gEeh7:last-of-type > ._7hNMzs9 {
4997
4998
  border-bottom-right-radius: var(--bs-accordion-border-radius);
4998
4999
  border-bottom-left-radius: var(--bs-accordion-border-radius);
4999
5000
  }
@@ -5002,21 +5003,21 @@ textarea.Qfp5feW {
5002
5003
  padding: var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x);
5003
5004
  }
5004
5005
 
5005
- .aRW-a5- ._7hNMzs9 {
5006
- border-width: 0;
5007
- }
5008
- .aRW-a5- .S9gEeh7 {
5006
+ .aRW-a5- > .S9gEeh7 {
5009
5007
  border-right: 0;
5010
5008
  border-left: 0;
5011
5009
  border-radius: 0;
5012
5010
  }
5013
- .aRW-a5- .S9gEeh7:first-child {
5011
+ .aRW-a5- > .S9gEeh7:first-child {
5014
5012
  border-top: 0;
5015
5013
  }
5016
- .aRW-a5- .S9gEeh7:last-child {
5014
+ .aRW-a5- > .S9gEeh7:last-child {
5017
5015
  border-bottom: 0;
5018
5016
  }
5019
- .aRW-a5- .S9gEeh7 .EN-AC5F, .aRW-a5- .S9gEeh7 .EN-AC5F.vG7qVGd {
5017
+ .aRW-a5- > .S9gEeh7 > .unMRrjv .EN-AC5F, .aRW-a5- > .S9gEeh7 > .unMRrjv .EN-AC5F.vG7qVGd {
5018
+ border-radius: 0;
5019
+ }
5020
+ .aRW-a5- > .S9gEeh7 > ._7hNMzs9 {
5020
5021
  border-radius: 0;
5021
5022
  }
5022
5023
 
@@ -5925,7 +5926,6 @@ textarea.Qfp5feW {
5925
5926
  display: flex;
5926
5927
  flex-shrink: 0;
5927
5928
  align-items: center;
5928
- justify-content: space-between;
5929
5929
  padding: var(--bs-modal-header-padding);
5930
5930
  border-bottom: var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);
5931
5931
  border-top-left-radius: var(--bs-modal-inner-border-radius);
@@ -6510,20 +6510,12 @@ textarea.Qfp5feW {
6510
6510
  background-size: 100% 100%;
6511
6511
  }
6512
6512
 
6513
- /* rtl:options: {
6514
- "autoRename": true,
6515
- "stringMap":[ {
6516
- "name" : "prev-next",
6517
- "search" : "prev",
6518
- "replace" : "next"
6519
- } ]
6520
- } */
6521
6513
  ._5CMMRuB {
6522
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
6514
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") /*rtl:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")*/;
6523
6515
  }
6524
6516
 
6525
6517
  .X50hG47 {
6526
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
6518
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") /*rtl:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")*/;
6527
6519
  }
6528
6520
 
6529
6521
  .erb-40E {
@@ -7221,14 +7213,11 @@ textarea.Qfp5feW {
7221
7213
  .Fkv4SH- {
7222
7214
  display: flex;
7223
7215
  align-items: center;
7224
- justify-content: space-between;
7225
7216
  padding: var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);
7226
7217
  }
7227
7218
  .Fkv4SH- .KvUyLmI {
7228
7219
  padding: calc(var(--bs-offcanvas-padding-y) * 0.5) calc(var(--bs-offcanvas-padding-x) * 0.5);
7229
- margin-top: calc(-0.5 * var(--bs-offcanvas-padding-y));
7230
- margin-right: calc(-0.5 * var(--bs-offcanvas-padding-x));
7231
- margin-bottom: calc(-0.5 * var(--bs-offcanvas-padding-y));
7220
+ margin: calc(-0.5 * var(--bs-offcanvas-padding-y)) calc(-0.5 * var(--bs-offcanvas-padding-x)) calc(-0.5 * var(--bs-offcanvas-padding-y)) auto;
7232
7221
  }
7233
7222
 
7234
7223
  .qzo8qH8 {