@supersoniks/concorde 3.3.2 → 4.0.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.
Files changed (49) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +154 -154
  3. package/concorde-core.es.js +2366 -2356
  4. package/dist/concorde-core.bundle.js +154 -154
  5. package/dist/concorde-core.es.js +2366 -2356
  6. package/package.json +1 -4
  7. package/src/core/_types/types.ts +1 -1
  8. package/src/core/components/functional/queue/queue.ts +3 -4
  9. package/src/core/components/functional/states/states.demo.ts +5 -2
  10. package/src/core/components/functional/states/states.spec.ts +14 -13
  11. package/src/core/components/functional/submit/submit.ts +2 -2
  12. package/src/core/components/ui/captcha/captcha.ts +16 -12
  13. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +41 -7
  14. package/src/core/components/ui/pop/pop.ts +6 -6
  15. package/src/core/components/ui/theme/theme.ts +3 -3
  16. package/src/core/decorators/subscriber/bind.ts +2 -2
  17. package/src/core/decorators/subscriber/onAssign.ts +6 -4
  18. package/src/core/directives/DataProvider.ts +47 -60
  19. package/src/core/directives/Wording.ts +4 -4
  20. package/src/core/mixins/FormCheckable.ts +12 -12
  21. package/src/core/mixins/FormElement.ts +1 -1
  22. package/src/core/utils/PublisherProxy.ts +260 -178
  23. package/src/core/utils/Utils.ts +3 -0
  24. package/src/core/utils/api.ts +4 -6
  25. package/src/dataprovider.ts +1 -0
  26. package/src/directives.ts +27 -13
  27. package/src/docs/_misc/on-assign.md +5 -5
  28. package/src/docs/search/docs-search.json +70 -0
  29. package/src/tsconfig.json +0 -9
  30. package/src/tsconfig.tsbuildinfo +1 -1
  31. package/src/utils.ts +2 -4
  32. package/mcp-server/COMPARISON-MCP.md +0 -176
  33. package/mcp-server/README-MCP-NODEJS.md +0 -284
  34. package/mcp-server/README-MCP.md +0 -114
  35. package/mcp-server/README.md +0 -127
  36. package/mcp-server/TECHNICAL-DOCS.md +0 -269
  37. package/mcp-server/concorde-mcp-server.js +0 -859
  38. package/mcp-server/concorde-mcp-server.py +0 -801
  39. package/mcp-server/cursor-mcp-config-advanced.json +0 -68
  40. package/mcp-server/cursor-mcp-config-nodejs.json +0 -74
  41. package/mcp-server/cursor-mcp-config.json +0 -11
  42. package/mcp-server/install-mcp-nodejs.sh +0 -104
  43. package/mcp-server/install-mcp.sh +0 -62
  44. package/mcp-server/package-lock.json +0 -147
  45. package/mcp-server/package-mcp.json +0 -40
  46. package/mcp-server/package.json +0 -40
  47. package/mcp-server/test-mcp.js +0 -107
  48. package/mcp-server/test-mcp.py +0 -73
  49. package/src/core/components/ui/toast/message-subscriber.stories.ts +0 -43
@@ -1,7 +1,7 @@
1
1
  import { AsyncDirective } from "lit/async-directive.js";
2
2
  import { directive } from "lit/directive.js";
3
3
  import { PublisherManager } from "@supersoniks/concorde/core/utils/PublisherProxy";
4
- import { dp } from "@supersoniks/concorde/core/directives/DataProvider";
4
+ import { dp } from "@supersoniks/concorde/core/utils/PublisherProxy";
5
5
  import { noChange } from "lit";
6
6
  import { APIConfiguration } from "@supersoniks/concorde/core/utils/api";
7
7
  import API from "@supersoniks/concorde/core/utils/api";
@@ -126,7 +126,7 @@ export default class WordingDirective extends AsyncDirective {
126
126
  "wordingVersionProvider"
127
127
  );
128
128
  if (wordingVersionProvider) {
129
- dp(wordingVersionProvider).onAssign(
129
+ dp<number>(wordingVersionProvider).onAssign(
130
130
  WordingDirective.handleVersionProvider(node)
131
131
  );
132
132
  }
@@ -160,7 +160,7 @@ export default class WordingDirective extends AsyncDirective {
160
160
  WordingDirective.publisher["wording_" + key].get() != null;
161
161
  if (!hasWordingForKey && key !== "") {
162
162
  apiCall.keysToTranslate.add(key);
163
- WordingDirective.publisher["wording_" + key] = loadingString;
163
+ WordingDirective.publisher["wording_" + key].set(loadingString);
164
164
  }
165
165
  if (callIndex !== apiCall.callIndex) return;
166
166
  const wordings = Array.from(apiCall.keysToTranslate);
@@ -179,7 +179,7 @@ export default class WordingDirective extends AsyncDirective {
179
179
  apiCall.keysToTranslate.clear();
180
180
  const result = (await api.get(calledURL)) as Record<string, string>;
181
181
  for (const key in result) {
182
- WordingDirective.publisher["wording_" + key] = result[key];
182
+ WordingDirective.publisher["wording_" + key].set(result[key]);
183
183
  }
184
184
  });
185
185
  }
@@ -74,9 +74,9 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
74
74
  if (this.checksAll()) {
75
75
  const checkAllPublisher = this.getCheckAllPublisher();
76
76
  if (checkAllPublisher) {
77
- if (this.checked === true) checkAllPublisher.checkMode = "allChecked";
77
+ if (this.checked === true) checkAllPublisher.checkMode.set("allChecked");
78
78
  else if (this.checked === null) {
79
- checkAllPublisher.checkMode = "noneChecked";
79
+ checkAllPublisher.checkMode.set("noneChecked");
80
80
  const formPublisher = this.getFormPublisher();
81
81
  if (formPublisher) {
82
82
  this.setFormPublisherValue([]);
@@ -200,15 +200,15 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
200
200
 
201
201
  if (!this.checksAll() && checkAllPublisher && formPublisher && name) {
202
202
  if (!(this.getFormPublisherValue() as any)?.length) {
203
- checkAllPublisher.checkMode = "noneChecked";
203
+ checkAllPublisher.checkMode.set("noneChecked");
204
204
  return;
205
205
  } else if (this.checked === null) {
206
- checkAllPublisher.checkMode = "someUnchecked";
206
+ checkAllPublisher.checkMode.set("someUnchecked");
207
207
  } else if (
208
208
  checkAllPublisher.checkMode.get() == "noneChecked" ||
209
209
  checkAllPublisher.checkMode.get() == null
210
210
  ) {
211
- checkAllPublisher.checkMode = "someUnchecked";
211
+ checkAllPublisher.checkMode.set("someUnchecked");
212
212
  }
213
213
  const currentValues = this.getFormPublisherValue();
214
214
  const allValues = checkAllPublisher.values.get();
@@ -221,10 +221,10 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
221
221
  }
222
222
  }
223
223
  if (checkedCount == allValues.length) {
224
- checkAllPublisher.checkMode = "allChecked";
224
+ checkAllPublisher.checkMode.set("allChecked");
225
225
  }
226
226
  if (checkedCount == 0) {
227
- checkAllPublisher.checkMode = "noneChecked";
227
+ checkAllPublisher.checkMode.set("noneChecked");
228
228
  }
229
229
  }
230
230
  if (allValues.indexOf(this.value) == -1 && this.unsetOnDisconnect()) {
@@ -261,7 +261,7 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
261
261
  const idx = values.indexOf(this.value);
262
262
  if (idx != -1) {
263
263
  values.splice(idx, 1);
264
- checkAllPublisher.values = values;
264
+ checkAllPublisher.values.set(values);
265
265
  }
266
266
  }
267
267
  }
@@ -284,16 +284,16 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
284
284
  if (checkAllPublisher) {
285
285
  checkAllPublisher.checkMode.onAssign(this.onChecksAllRequest);
286
286
  if (this.checksAll()) {
287
- checkAllPublisher.hasCheckAll = true;
287
+ checkAllPublisher.hasCheckAll.set(true);
288
288
  }
289
289
  if (!checkAllPublisher.values.get()) {
290
- checkAllPublisher.values = [];
290
+ checkAllPublisher.values.set([]);
291
291
  }
292
292
  if (!this.checksAll()) {
293
- checkAllPublisher.values = [
293
+ checkAllPublisher.values.set([
294
294
  ...checkAllPublisher.values.get(),
295
295
  this.value,
296
- ];
296
+ ]);
297
297
  }
298
298
  }
299
299
 
@@ -67,7 +67,7 @@ const Form = <T extends Constructor<SubscriberInterface>>(superClass: T) => {
67
67
 
68
68
  onValueAssign?: (v: string) => void;
69
69
  onFormValueAssign?: (v: string) => void;
70
- onFormDataInValidate?: (v: string) => void;
70
+ onFormDataInValidate?: VoidFunction;
71
71
  constructor(...args: MixinArgsType[]) {
72
72
  super();
73
73
  args;