@nymphjs/tilmeld-setup 1.0.0-beta.93 → 1.0.0-beta.95

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 (3) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/app/index.js +156 -119
  3. package/package.json +31 -31
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-beta.95](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.94...v1.0.0-beta.95) (2025-08-30)
7
+
8
+ **Note:** Version bump only for package @nymphjs/tilmeld-setup
9
+
10
+ # [1.0.0-beta.94](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.93...v1.0.0-beta.94) (2025-08-25)
11
+
12
+ ### Features
13
+
14
+ - add returnNullOnNotFound client option, and some tilmeld domain checks ([20c0207](https://github.com/sciactive/nymphjs/commit/20c0207ef537a948f84f830f1db88d207e1c386b))
15
+
6
16
  # [1.0.0-beta.93](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.92...v1.0.0-beta.93) (2025-08-16)
7
17
 
8
18
  **Note:** Version bump only for package @nymphjs/tilmeld-setup
package/dist/app/index.js CHANGED
@@ -6604,9 +6604,9 @@
6604
6604
  var div_3 = root_1$h();
6605
6605
 
6606
6606
  const class_derived = derived(() => clsx(classMap({
6607
- [className()]: true,
6608
6607
  'mdc-circular-progress__spinner-layer': true,
6609
- ['mdc-circular-progress__color-' + get(color)]: fourColor()
6608
+ ['mdc-circular-progress__color-' + get(color)]: fourColor(),
6609
+ [className()]: true
6610
6610
  })));
6611
6611
 
6612
6612
  template_effect(() => set_class(div_3, get(class_derived), ""));
@@ -6618,11 +6618,11 @@
6618
6618
  template_effect(() => {
6619
6619
  attributes = set_attributes(div, attributes, {
6620
6620
  class: classMap({
6621
- [className()]: true,
6622
6621
  'mdc-circular-progress': true,
6623
6622
  'mdc-circular-progress--indeterminate': indeterminate(),
6624
6623
  'mdc-circular-progress--closed': closed(),
6625
- ...internalClasses
6624
+ ...internalClasses,
6625
+ [className()]: true
6626
6626
  }),
6627
6627
  role: "progressbar",
6628
6628
  "aria-valuemin": 0,
@@ -8615,14 +8615,14 @@
8615
8615
  template_effect(() => {
8616
8616
  attributes = set_attributes(div, attributes, {
8617
8617
  class: classMap({
8618
- [className()]: true,
8619
8618
  'mdc-dialog': true,
8620
8619
  'mdc-dialog--stacked': !autoStackButtons(),
8621
8620
  'mdc-dialog--fullscreen': fullscreen(),
8622
8621
  'mdc-dialog--sheet': sheet(),
8623
8622
  'mdc-dialog--no-content-padding': noContentPadding(),
8624
8623
  'smui-dialog--selection': selection(),
8625
- ...internalClasses
8624
+ ...internalClasses,
8625
+ [className()]: true
8626
8626
  }),
8627
8627
  role: "alertdialog",
8628
8628
  "aria-modal": "true",
@@ -8636,16 +8636,16 @@
8636
8636
 
8637
8637
  attributes_1 = set_attributes(div_1, attributes_1, {
8638
8638
  class: classMap({
8639
- [container$class()]: true,
8640
- 'mdc-dialog__container': true
8639
+ 'mdc-dialog__container': true,
8640
+ [container$class()]: true
8641
8641
  }),
8642
8642
  ...get(spread_with_call_1)
8643
8643
  });
8644
8644
 
8645
8645
  attributes_2 = set_attributes(div_2, attributes_2, {
8646
8646
  class: classMap({
8647
- [surface$class()]: true,
8648
- 'mdc-dialog__surface': true
8647
+ 'mdc-dialog__surface': true,
8648
+ [surface$class()]: true
8649
8649
  }),
8650
8650
  role: "alertdialog",
8651
8651
  "aria-modal": "true",
@@ -8687,7 +8687,6 @@
8687
8687
  var node = first_child(fragment);
8688
8688
 
8689
8689
  var class_1 = derived(() => classMap({
8690
- [className()]: true,
8691
8690
  'mdc-button__label': context === 'button',
8692
8691
  'mdc-fab__label': context === 'fab',
8693
8692
  'mdc-tab__text-label': context === 'tab',
@@ -8696,7 +8695,8 @@
8696
8695
  'mdc-banner__text': context === 'banner',
8697
8696
  'mdc-segmented-button__label': context === 'segmented-button',
8698
8697
  'mdc-data-table__pagination-rows-per-page-label': context === 'data-table:pagination',
8699
- 'mdc-data-table__header-cell-label': context === 'data-table:sortable-header-cell'
8698
+ 'mdc-data-table__header-cell-label': context === 'data-table:sortable-header-cell',
8699
+ [className()]: true
8700
8700
  }));
8701
8701
 
8702
8702
  component(node, MyComponent, ($$anchor, $$component) => {
@@ -8768,14 +8768,14 @@
8768
8768
  var node = first_child(fragment);
8769
8769
 
8770
8770
  var class_1 = derived(() => classMap({
8771
- [className()]: true,
8772
8771
  'mdc-button__icon': context === 'button',
8773
8772
  'mdc-fab__icon': context === 'fab',
8774
8773
  'mdc-icon-button__icon': context === 'icon-button',
8775
8774
  'mdc-icon-button__icon--on': context === 'icon-button' && on(),
8776
8775
  'mdc-tab__icon': context === 'tab',
8777
8776
  'mdc-banner__icon': context === 'banner',
8778
- 'mdc-segmented-button__icon': context === 'segmented-button'
8777
+ 'mdc-segmented-button__icon': context === 'segmented-button',
8778
+ [className()]: true
8779
8779
  }));
8780
8780
 
8781
8781
  component(node, MyComponent, ($$anchor, $$component) => {
@@ -9053,9 +9053,9 @@
9053
9053
  var node = first_child(fragment);
9054
9054
 
9055
9055
  var class_1 = derived(() => classMap({
9056
- [className()]: true,
9057
9056
  [_smuiClass()]: true,
9058
- ..._smuiClassMap()
9057
+ ..._smuiClassMap(),
9058
+ [className()]: true
9059
9059
  }));
9060
9060
 
9061
9061
  component(node, MyComponent, ($$anchor, $$component) => {
@@ -10738,11 +10738,11 @@
10738
10738
 
10739
10739
  template_effect(() => attributes = set_attributes(span, attributes, {
10740
10740
  class: classMap({
10741
- [className()]: true,
10742
10741
  'mdc-floating-label': true,
10743
10742
  'mdc-floating-label--float-above': floatAbove(),
10744
10743
  'mdc-floating-label--required': required(),
10745
- ...internalClasses
10744
+ ...internalClasses,
10745
+ [className()]: true
10746
10746
  }),
10747
10747
  style: Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '),
10748
10748
  ...restProps
@@ -10762,11 +10762,11 @@
10762
10762
 
10763
10763
  template_effect(() => attributes_1 = set_attributes(label, attributes_1, {
10764
10764
  class: classMap({
10765
- [className()]: true,
10766
10765
  'mdc-floating-label': true,
10767
10766
  'mdc-floating-label--float-above': floatAbove(),
10768
10767
  'mdc-floating-label--required': required(),
10769
- ...internalClasses
10768
+ ...internalClasses,
10769
+ [className()]: true
10770
10770
  }),
10771
10771
  style: Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '),
10772
10772
  for: $$props.for || (inputProps ? inputProps.id : undefined),
@@ -10885,10 +10885,10 @@
10885
10885
 
10886
10886
  template_effect(() => attributes = set_attributes(div, attributes, {
10887
10887
  class: classMap({
10888
- [className()]: true,
10889
10888
  'mdc-line-ripple': true,
10890
10889
  'mdc-line-ripple--active': active(),
10891
- ...internalClasses
10890
+ ...internalClasses,
10891
+ [className()]: true
10892
10892
  }),
10893
10893
  style: Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '),
10894
10894
  ...restProps
@@ -11038,11 +11038,11 @@
11038
11038
 
11039
11039
  template_effect(() => attributes = set_attributes(div, attributes, {
11040
11040
  class: classMap({
11041
- [className()]: true,
11042
11041
  'mdc-notched-outline': true,
11043
11042
  'mdc-notched-outline--notched': notched(),
11044
11043
  'mdc-notched-outline--no-label': noLabel(),
11045
- ...internalClasses
11044
+ ...internalClasses,
11045
+ [className()]: true
11046
11046
  }),
11047
11047
  ...restProps
11048
11048
  }));
@@ -11326,8 +11326,8 @@
11326
11326
 
11327
11327
  template_effect(() => attributes = set_attributes(input, attributes, {
11328
11328
  class: classMap({
11329
- [className()]: true,
11330
- 'mdc-text-field__input': true
11329
+ 'mdc-text-field__input': true,
11330
+ [className()]: true
11331
11331
  }),
11332
11332
  type: type(),
11333
11333
  placeholder: placeholder(),
@@ -11439,8 +11439,8 @@
11439
11439
 
11440
11440
  template_effect(() => attributes = set_attributes(textarea, attributes, {
11441
11441
  class: classMap({
11442
- [className()]: true,
11443
- 'mdc-text-field__input': true
11442
+ 'mdc-text-field__input': true,
11443
+ [className()]: true
11444
11444
  }),
11445
11445
  style: `${resizable() ? '' : 'resize: none; '}${style()}`,
11446
11446
  ...internalAttrs,
@@ -12367,7 +12367,6 @@
12367
12367
 
12368
12368
  template_effect(() => attributes = set_attributes(label_1, attributes, {
12369
12369
  class: classMap({
12370
- [className()]: true,
12371
12370
  'mdc-text-field': true,
12372
12371
  'mdc-text-field--disabled': disabled(),
12373
12372
  'mdc-text-field--textarea': textarea(),
@@ -12380,7 +12379,8 @@
12380
12379
  'mdc-text-field--with-trailing-icon': isUninitializedValue(withTrailingIcon()) ? $$props.trailingIcon : withTrailingIcon(),
12381
12380
  'mdc-text-field--with-internal-counter': textarea() && $$props.internalCounter,
12382
12381
  'mdc-text-field--invalid': invalid(),
12383
- ...internalClasses
12382
+ ...internalClasses,
12383
+ [className()]: true
12384
12384
  }),
12385
12385
  style: Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '),
12386
12386
  for: /* suppress a11y warning, since this is wrapped */ undefined,
@@ -12469,7 +12469,6 @@
12469
12469
 
12470
12470
  template_effect(() => attributes_1 = set_attributes(div, attributes_1, {
12471
12471
  class: classMap({
12472
- [className()]: true,
12473
12472
  'mdc-text-field': true,
12474
12473
  'mdc-text-field--disabled': disabled(),
12475
12474
  'mdc-text-field--textarea': textarea(),
@@ -12480,7 +12479,8 @@
12480
12479
  'mdc-text-field--with-leading-icon': $$props.leadingIcon,
12481
12480
  'mdc-text-field--with-trailing-icon': $$props.trailingIcon,
12482
12481
  'mdc-text-field--invalid': invalid(),
12483
- ...internalClasses
12482
+ ...internalClasses,
12483
+ [className()]: true
12484
12484
  }),
12485
12485
  style: Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '),
12486
12486
  ...get(spread_with_call_1)
@@ -12644,11 +12644,11 @@
12644
12644
 
12645
12645
  template_effect(() => attributes = set_attributes(div, attributes, {
12646
12646
  class: classMap({
12647
- [className()]: true,
12648
12647
  'mdc-text-field-helper-text': true,
12649
12648
  'mdc-text-field-helper-text--persistent': persistent(),
12650
12649
  'mdc-text-field-helper-text--validation-msg': validationMsg(),
12651
- ...internalClasses
12650
+ ...internalClasses,
12651
+ [className()]: true
12652
12652
  }),
12653
12653
  "aria-hidden": persistent() ? undefined : 'true',
12654
12654
  id: id(),
@@ -12776,7 +12776,6 @@
12776
12776
  ]);
12777
12777
 
12778
12778
  var class_1 = derived(() => classMap({
12779
- [className()]: true,
12780
12779
  'mdc-button': true,
12781
12780
  'mdc-button--raised': variant() === 'raised',
12782
12781
  'mdc-button--unelevated': variant() === 'unelevated',
@@ -12792,7 +12791,8 @@
12792
12791
  'mdc-banner__secondary-action': context === 'banner' && secondary(),
12793
12792
  'mdc-banner__primary-action': context === 'banner' && !secondary(),
12794
12793
  'mdc-tooltip__action': context === 'tooltip:rich-actions',
12795
- ...internalClasses
12794
+ ...internalClasses,
12795
+ [className()]: true
12796
12796
  }));
12797
12797
 
12798
12798
  var style_1 = derived(() => Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '));
@@ -13416,13 +13416,13 @@
13416
13416
  template_effect(() => {
13417
13417
  attributes = set_attributes(div, attributes, {
13418
13418
  class: classMap({
13419
- [className()]: true,
13420
13419
  'mdc-checkbox': true,
13421
13420
  'mdc-checkbox--disabled': disabled(),
13422
13421
  'mdc-checkbox--touch': touch(),
13423
13422
  'mdc-data-table__header-row-checkbox': context === 'data-table' && dataTableHeader,
13424
13423
  'mdc-data-table__row-checkbox': context === 'data-table' && !dataTableHeader,
13425
- ...internalClasses
13424
+ ...internalClasses,
13425
+ [className()]: true
13426
13426
  }),
13427
13427
  style: Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '),
13428
13428
  ...get(spread_with_call),
@@ -13431,8 +13431,8 @@
13431
13431
 
13432
13432
  attributes_1 = set_attributes(input, attributes_1, {
13433
13433
  class: classMap({
13434
- [input$class()]: true,
13435
- 'mdc-checkbox__native-control': true
13434
+ 'mdc-checkbox__native-control': true,
13435
+ [input$class()]: true
13436
13436
  }),
13437
13437
  type: "checkbox",
13438
13438
  ...inputProps,
@@ -13643,10 +13643,10 @@
13643
13643
  template_effect(() => {
13644
13644
  attributes = set_attributes(div, attributes, {
13645
13645
  class: classMap({
13646
- [className()]: true,
13647
13646
  'mdc-form-field': true,
13648
13647
  'mdc-form-field--align-end': align() === 'end',
13649
- 'mdc-form-field--nowrap': noWrap()
13648
+ 'mdc-form-field--nowrap': noWrap(),
13649
+ [className()]: true
13650
13650
  }),
13651
13651
  ...get(spread_with_call)
13652
13652
  });
@@ -19655,10 +19655,18 @@
19655
19655
  * The entity cache.
19656
19656
  */
19657
19657
  cache = new EntityWeakCache();
19658
+ /**
19659
+ * Return `null` or empty array instead of error when entity/ies not found.
19660
+ */
19661
+ returnNullOnNotFound = false;
19658
19662
  constructor(NymphOptions) {
19659
19663
  this.restUrl = NymphOptions.restUrl;
19660
19664
  // @ts-ignore TS doesn't know about WeakRef.
19661
19665
  this.weakCache = !!NymphOptions.weakCache && typeof WeakRef !== 'undefined';
19666
+ if ('returnNullOnNotFound' in NymphOptions &&
19667
+ NymphOptions.returnNullOnNotFound != null) {
19668
+ this.returnNullOnNotFound = NymphOptions.returnNullOnNotFound;
19669
+ }
19662
19670
  this.Entity = this.addEntityClass(Entity);
19663
19671
  requester = new HttpRequester('fetch' in NymphOptions ? NymphOptions.fetch : undefined);
19664
19672
  if ('renewTokens' in NymphOptions && !NymphOptions.renewTokens) {
@@ -19805,8 +19813,21 @@
19805
19813
  throw new Error('Server error');
19806
19814
  }
19807
19815
  async getEntity(options, ...selectors) {
19808
- // @ts-ignore: Implementation signatures of overloads are not externally visible.
19809
- const data = (await this.getEntityData(options, ...selectors));
19816
+ let data = null;
19817
+ try {
19818
+ // @ts-ignore: Implementation signatures of overloads are not externally visible.
19819
+ data = (await this.getEntityData(options, ...selectors));
19820
+ }
19821
+ catch (e) {
19822
+ if (this.returnNullOnNotFound &&
19823
+ e instanceof ClientError &&
19824
+ e.status === 404) {
19825
+ data = null;
19826
+ }
19827
+ else {
19828
+ throw e;
19829
+ }
19830
+ }
19810
19831
  if (options.return && options.return === 'count') {
19811
19832
  return Number(data ?? 0);
19812
19833
  }
@@ -19846,20 +19867,36 @@
19846
19867
  return null;
19847
19868
  }
19848
19869
  async getEntities(options, ...selectors) {
19849
- const data = await requester.GET({
19850
- url: this.restUrl,
19851
- headers: { ...this.headers },
19852
- dataType: 'json',
19853
- data: {
19854
- action: 'entities',
19855
- data: [
19856
- { ...options, class: options.class.class },
19857
- ...entityConstructorsToClassNames(selectors),
19858
- ],
19859
- },
19860
- });
19870
+ let data = null;
19871
+ try {
19872
+ data = await requester.GET({
19873
+ url: this.restUrl,
19874
+ headers: { ...this.headers },
19875
+ dataType: 'json',
19876
+ data: {
19877
+ action: 'entities',
19878
+ data: [
19879
+ { ...options, class: options.class.class },
19880
+ ...entityConstructorsToClassNames(selectors),
19881
+ ],
19882
+ },
19883
+ });
19884
+ }
19885
+ catch (e) {
19886
+ if (this.returnNullOnNotFound &&
19887
+ e instanceof ClientError &&
19888
+ e.status === 404) {
19889
+ data = null;
19890
+ }
19891
+ else {
19892
+ throw e;
19893
+ }
19894
+ }
19861
19895
  if (options.return && options.return === 'count') {
19862
- return Number(data);
19896
+ return Number(data ?? 0);
19897
+ }
19898
+ if (data == null) {
19899
+ return [];
19863
19900
  }
19864
19901
  if (options.return && options.return === 'guid') {
19865
19902
  return data;
@@ -20722,11 +20759,11 @@
20722
20759
  template_effect(() => {
20723
20760
  attributes = set_attributes(div, attributes, {
20724
20761
  class: classMap({
20725
- [className()]: true,
20726
20762
  'mdc-radio': true,
20727
20763
  'mdc-radio--disabled': disabled(),
20728
20764
  'mdc-radio--touch': touch(),
20729
- ...internalClasses
20765
+ ...internalClasses,
20766
+ [className()]: true
20730
20767
  }),
20731
20768
  style: Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '),
20732
20769
  ...get(spread_with_call)
@@ -20734,8 +20771,8 @@
20734
20771
 
20735
20772
  attributes_1 = set_attributes(input, attributes_1, {
20736
20773
  class: classMap({
20737
- [input$class()]: true,
20738
- 'mdc-radio__native-control': true
20774
+ 'mdc-radio__native-control': true,
20775
+ [input$class()]: true
20739
20776
  }),
20740
20777
  type: "radio",
20741
20778
  ...inputProps,
@@ -22969,7 +23006,6 @@
22969
23006
 
22970
23007
  template_effect(() => attributes = set_attributes(header, attributes, {
22971
23008
  class: classMap({
22972
- [className()]: true,
22973
23009
  'mdc-top-app-bar': true,
22974
23010
  'mdc-top-app-bar--short': variant() === 'short',
22975
23011
  'mdc-top-app-bar--short-collapsed': collapsed(),
@@ -22978,7 +23014,8 @@
22978
23014
  'smui-top-app-bar--color-secondary': color() === 'secondary',
22979
23015
  'mdc-top-app-bar--prominent': prominent(),
22980
23016
  'mdc-top-app-bar--dense': dense(),
22981
- ...get(internalClasses)
23017
+ ...get(internalClasses),
23018
+ [className()]: true
22982
23019
  }),
22983
23020
  style: Object.entries(get(internalStyles)).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '),
22984
23021
  ...restProps,
@@ -23069,10 +23106,10 @@
23069
23106
 
23070
23107
  template_effect(() => attributes = set_attributes(section, attributes, {
23071
23108
  class: classMap({
23072
- [className()]: true,
23073
23109
  'mdc-top-app-bar__section': true,
23074
23110
  'mdc-top-app-bar__section--align-start': align() === 'start',
23075
- 'mdc-top-app-bar__section--align-end': align() === 'end'
23111
+ 'mdc-top-app-bar__section--align-end': align() === 'end',
23112
+ [className()]: true
23076
23113
  }),
23077
23114
  ...toolbar() ? { role: 'toolbar' } : {},
23078
23115
  ...restProps
@@ -24854,12 +24891,12 @@
24854
24891
 
24855
24892
  template_effect(() => attributes = set_attributes(aside, attributes, {
24856
24893
  class: classMap({
24857
- [className()]: true,
24858
24894
  'mdc-drawer': true,
24859
24895
  'mdc-drawer--dismissible': $$props.variant === 'dismissible',
24860
24896
  'mdc-drawer--modal': $$props.variant === 'modal',
24861
24897
  'smui-drawer__absolute': $$props.variant === 'modal' && !fixed(),
24862
- ...get(internalClasses)
24898
+ ...get(internalClasses),
24899
+ [className()]: true
24863
24900
  }),
24864
24901
  ...restProps,
24865
24902
  onkeydown: event_handler,
@@ -24979,9 +25016,9 @@
24979
25016
  var node = first_child(fragment);
24980
25017
 
24981
25018
  var class_1 = derived(() => classMap({
24982
- [className()]: true,
24983
25019
  'mdc-drawer-scrim': true,
24984
- 'smui-drawer-scrim__absolute': !fixed()
25020
+ 'smui-drawer-scrim__absolute': !fixed(),
25021
+ [className()]: true
24985
25022
  }));
24986
25023
 
24987
25024
  component(node, MyComponent, ($$anchor, $$component) => {
@@ -25362,7 +25399,6 @@
25362
25399
  ]);
25363
25400
 
25364
25401
  var class_1 = derived(() => classMap({
25365
- [className()]: true,
25366
25402
  'mdc-icon-button': true,
25367
25403
  'mdc-icon-button--on': !isUninitializedValue(pressed()) && pressed(),
25368
25404
  'mdc-icon-button--touch': touch(),
@@ -25378,7 +25414,8 @@
25378
25414
  'mdc-data-table__pagination-button': context === 'data-table:pagination',
25379
25415
  'mdc-data-table__sort-icon-button': context === 'data-table:sortable-header-cell',
25380
25416
  'mdc-dialog__close': (context === 'dialog:header' || context === 'dialog:sheet') && $$props.action === 'close',
25381
- ...get(internalClasses)
25417
+ ...get(internalClasses),
25418
+ [className()]: true
25382
25419
  }));
25383
25420
 
25384
25421
  var style_1 = derived(() => Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '));
@@ -25870,7 +25907,6 @@
25870
25907
  var node = first_child(fragment);
25871
25908
 
25872
25909
  var class_1 = derived(() => classMap({
25873
- [className()]: true,
25874
25910
  'mdc-deprecated-list': true,
25875
25911
  'mdc-deprecated-list--non-interactive': nonInteractive(),
25876
25912
  'mdc-deprecated-list--dense': dense(),
@@ -25881,7 +25917,8 @@
25881
25917
  'mdc-deprecated-list--thumbnail-list': thumbnailList(),
25882
25918
  'mdc-deprecated-list--video-list': videoList(),
25883
25919
  'mdc-deprecated-list--two-line': twoLine(),
25884
- 'smui-list--three-line': threeLine() && !twoLine()
25920
+ 'smui-list--three-line': threeLine() && !twoLine(),
25921
+ [className()]: true
25885
25922
  }));
25886
25923
 
25887
25924
  component(node, MyComponent, ($$anchor, $$component) => {
@@ -26257,7 +26294,6 @@
26257
26294
  ]);
26258
26295
 
26259
26296
  var class_1 = derived(() => classMap({
26260
- [className()]: true,
26261
26297
  'mdc-deprecated-list-item': !wrapper(),
26262
26298
  'mdc-deprecated-list-item__wrapper': wrapper(),
26263
26299
  'mdc-deprecated-list-item--activated': activated(),
@@ -26265,7 +26301,8 @@
26265
26301
  'mdc-deprecated-list-item--disabled': disabled(),
26266
26302
  'mdc-menu-item--selected': !nav && role() === 'menuitem' && selected(),
26267
26303
  'smui-menu-item--non-interactive': nonInteractive(),
26268
- ...internalClasses
26304
+ ...internalClasses,
26305
+ [className()]: true
26269
26306
  }));
26270
26307
 
26271
26308
  var style_1 = derived(() => Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '));
@@ -26483,13 +26520,13 @@
26483
26520
  var node = first_child(fragment);
26484
26521
 
26485
26522
  var class_1 = derived(() => classMap({
26486
- [className()]: true,
26487
26523
  'mdc-deprecated-list-divider': true,
26488
26524
  'mdc-deprecated-list-divider--padded': padded(),
26489
26525
  'mdc-deprecated-list-divider--inset': inset(),
26490
26526
  'mdc-deprecated-list-divider--inset-leading': insetLeading(),
26491
26527
  'mdc-deprecated-list-divider--inset-trailing': insetTrailing(),
26492
- 'mdc-deprecated-list-divider--inset-padding': insetPadding()
26528
+ 'mdc-deprecated-list-divider--inset-padding': insetPadding(),
26529
+ [className()]: true
26493
26530
  }));
26494
26531
 
26495
26532
  component(node, MyComponent, ($$anchor, $$component) => {
@@ -27776,13 +27813,13 @@
27776
27813
 
27777
27814
  template_effect(() => attributes = set_attributes(div, attributes, {
27778
27815
  class: classMap({
27779
- [className()]: true,
27780
27816
  'mdc-menu-surface': true,
27781
27817
  'mdc-menu-surface--fixed': fixed(),
27782
27818
  'mdc-menu-surface--open': isStatic(),
27783
27819
  'smui-menu-surface--static': isStatic(),
27784
27820
  'mdc-menu-surface--fullwidth': fullWidth(),
27785
- ...internalClasses
27821
+ ...internalClasses,
27822
+ [className()]: true
27786
27823
  }),
27787
27824
  style: Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '),
27788
27825
  role: "dialog",
@@ -28001,7 +28038,7 @@
28001
28038
  return element.getElement();
28002
28039
  }
28003
28040
 
28004
- var class_1 = derived(() => classMap({ [className()]: true, 'mdc-menu': true }));
28041
+ var class_1 = derived(() => classMap({ 'mdc-menu': true, [className()]: true }));
28005
28042
 
28006
28043
  bind_this(
28007
28044
  MenuSurface($$anchor, spread_props(
@@ -28868,7 +28905,6 @@
28868
28905
 
28869
28906
  template_effect(() => attributes = set_attributes(div, attributes, {
28870
28907
  class: classMap({
28871
- [className()]: true,
28872
28908
  'smui-paper': true,
28873
28909
  'smui-paper--raised': variant() === 'raised',
28874
28910
  'smui-paper--unelevated': variant() === 'unelevated',
@@ -28876,7 +28912,8 @@
28876
28912
  ['smui-paper--elevation-z' + elevation()]: elevation() !== 0 && variant() === 'raised',
28877
28913
  'smui-paper--rounded': !square(),
28878
28914
  ['smui-paper--color-' + color()]: color() !== 'default',
28879
- 'smui-paper-transition': transition()
28915
+ 'smui-paper-transition': transition(),
28916
+ [className()]: true
28880
28917
  }),
28881
28918
  ...restProps
28882
28919
  }));
@@ -29673,10 +29710,10 @@
29673
29710
  template_effect(() => {
29674
29711
  attributes = set_attributes(div, attributes, {
29675
29712
  class: classMap({
29676
- [className()]: true,
29677
29713
  'mdc-data-table': true,
29678
29714
  'mdc-data-table--sticky-header': stickyHeader(),
29679
- ...internalClasses
29715
+ ...internalClasses,
29716
+ [className()]: true
29680
29717
  }),
29681
29718
  ...get(spread_with_call),
29682
29719
  onSMUIDataTableHeaderCheckboxChange: event_handler,
@@ -29687,16 +29724,16 @@
29687
29724
 
29688
29725
  attributes_1 = set_attributes(div_1, attributes_1, {
29689
29726
  class: classMap({
29690
- [container$class()]: true,
29691
- 'mdc-data-table__table-container': true
29727
+ 'mdc-data-table__table-container': true,
29728
+ [container$class()]: true
29692
29729
  }),
29693
29730
  ...get(spread_with_call_1)
29694
29731
  });
29695
29732
 
29696
29733
  attributes_2 = set_attributes(table, attributes_2, {
29697
29734
  class: classMap({
29698
- [table$class()]: true,
29699
- 'mdc-data-table__table': true
29735
+ 'mdc-data-table__table': true,
29736
+ [table$class()]: true
29700
29737
  }),
29701
29738
  ...get(spread_with_call_2)
29702
29739
  });
@@ -29878,8 +29915,8 @@
29878
29915
 
29879
29916
  template_effect(() => attributes = set_attributes(tbody, attributes, {
29880
29917
  class: classMap({
29881
- [className()]: true,
29882
- 'mdc-data-table__content': true
29918
+ 'mdc-data-table__content': true,
29919
+ [className()]: true
29883
29920
  }),
29884
29921
  ...restProps
29885
29922
  }));
@@ -30032,11 +30069,11 @@
30032
30069
 
30033
30070
  template_effect(() => attributes = set_attributes(tr, attributes, {
30034
30071
  class: classMap({
30035
- [className()]: true,
30036
30072
  'mdc-data-table__header-row': header,
30037
30073
  'mdc-data-table__row': !header,
30038
30074
  'mdc-data-table__row--selected': !header && get(checkbox) && get(checkbox).checked,
30039
- ...internalClasses
30075
+ ...internalClasses,
30076
+ [className()]: true
30040
30077
  }),
30041
30078
  "aria-selected": get(checkbox) ? get(checkbox).checked ? 'true' : 'false' : undefined,
30042
30079
  ...internalAttrs,
@@ -30220,13 +30257,13 @@
30220
30257
 
30221
30258
  template_effect(() => attributes = set_attributes(th, attributes, {
30222
30259
  class: classMap({
30223
- [className()]: true,
30224
30260
  'mdc-data-table__header-cell': true,
30225
30261
  'mdc-data-table__header-cell--numeric': numeric(),
30226
30262
  'mdc-data-table__header-cell--checkbox': checkbox(),
30227
30263
  'mdc-data-table__header-cell--with-sort': sortable(),
30228
30264
  'mdc-data-table__header-cell--sorted': sortable() && $sort() === columnId(),
30229
- ...internalClasses
30265
+ ...internalClasses,
30266
+ [className()]: true
30230
30267
  }),
30231
30268
  role: "columnheader",
30232
30269
  scope: "col",
@@ -30260,11 +30297,11 @@
30260
30297
 
30261
30298
  template_effect(() => attributes_1 = set_attributes(td, attributes_1, {
30262
30299
  class: classMap({
30263
- [className()]: true,
30264
30300
  'mdc-data-table__cell': true,
30265
30301
  'mdc-data-table__cell--numeric': numeric(),
30266
30302
  'mdc-data-table__cell--checkbox': checkbox(),
30267
- ...internalClasses
30303
+ ...internalClasses,
30304
+ [className()]: true
30268
30305
  }),
30269
30306
  ...internalAttrs,
30270
30307
  ...restProps,
@@ -30375,14 +30412,14 @@
30375
30412
  ]);
30376
30413
 
30377
30414
  var class_1 = derived(() => classMap({
30378
- [className()]: true,
30379
30415
  'mdc-fab': true,
30380
30416
  'mdc-fab--mini': mini(),
30381
30417
  'mdc-fab--exited': exited(),
30382
30418
  'mdc-fab--extended': extended(),
30383
30419
  'smui-fab--color-primary': color() === 'primary',
30384
30420
  'mdc-fab--touch': touch(),
30385
- ...internalClasses
30421
+ ...internalClasses,
30422
+ [className()]: true
30386
30423
  }));
30387
30424
 
30388
30425
  var style_1 = derived(() => Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '));
@@ -31423,21 +31460,21 @@
31423
31460
  template_effect(() => {
31424
31461
  attributes = set_attributes(span, attributes, {
31425
31462
  class: classMap({
31426
- [className()]: true,
31427
31463
  'mdc-tab-indicator': true,
31428
31464
  'mdc-tab-indicator--active': active(),
31429
31465
  'mdc-tab-indicator--fade': transition() === 'fade',
31430
- ...get(internalClasses)
31466
+ ...get(internalClasses),
31467
+ [className()]: true
31431
31468
  }),
31432
31469
  ...get(spread_with_call)
31433
31470
  });
31434
31471
 
31435
31472
  attributes_1 = set_attributes(span_1, attributes_1, {
31436
31473
  class: classMap({
31437
- [content$class()]: true,
31438
31474
  'mdc-tab-indicator__content': true,
31439
31475
  'mdc-tab-indicator__content--underline': type() === 'underline',
31440
- 'mdc-tab-indicator__content--icon': type() === 'icon'
31476
+ 'mdc-tab-indicator__content--icon': type() === 'icon',
31477
+ [content$class()]: true
31441
31478
  }),
31442
31479
  style: Object.entries(get(contentStyles)).map(([name, value]) => `${name}: ${value};`).join(' '),
31443
31480
  "aria-hidden": type() === 'icon' ? 'true' : undefined,
@@ -31680,12 +31717,12 @@
31680
31717
  ]);
31681
31718
 
31682
31719
  var class_1 = derived(() => classMap({
31683
- [className()]: true,
31684
31720
  'mdc-tab': true,
31685
31721
  'mdc-tab--active': get(active),
31686
31722
  'mdc-tab--stacked': stacked(),
31687
31723
  'mdc-tab--min-width': minWidth(),
31688
- ...internalClasses
31724
+ ...internalClasses,
31725
+ [className()]: true
31689
31726
  }));
31690
31727
 
31691
31728
  var style_1 = derived(() => Object.entries(internalStyles).map(([name, value]) => `${name}: ${value};`).concat([style()]).join(' '));
@@ -31767,8 +31804,8 @@
31767
31804
 
31768
31805
  template_effect(() => attributes = set_attributes(span, attributes, {
31769
31806
  class: classMap({
31770
- [content$class()]: true,
31771
- 'mdc-tab__content': true
31807
+ 'mdc-tab__content': true,
31808
+ [content$class()]: true
31772
31809
  }),
31773
31810
  ...get(spread_with_call)
31774
31811
  }));
@@ -33047,21 +33084,21 @@
33047
33084
  template_effect(() => {
33048
33085
  attributes = set_attributes(div, attributes, {
33049
33086
  class: classMap({
33050
- [className()]: true,
33051
33087
  'mdc-tab-scroller': true,
33052
33088
  'mdc-tab-scroller--align-start': align() === 'start',
33053
33089
  'mdc-tab-scroller--align-end': align() === 'end',
33054
33090
  'mdc-tab-scroller--align-center': align() === 'center',
33055
- ...internalClasses
33091
+ ...internalClasses,
33092
+ [className()]: true
33056
33093
  }),
33057
33094
  ...get(spread_with_call)
33058
33095
  });
33059
33096
 
33060
33097
  attributes_1 = set_attributes(div_1, attributes_1, {
33061
33098
  class: classMap({
33062
- [scrollArea$class()]: true,
33063
33099
  'mdc-tab-scroller__scroll-area': true,
33064
- ...scrollAreaClasses
33100
+ ...scrollAreaClasses,
33101
+ [scrollArea$class()]: true
33065
33102
  }),
33066
33103
  style: Object.entries(scrollAreaStyles).map(([name, value]) => `${name}: ${value};`).join(' '),
33067
33104
  ...get(spread_with_call_1),
@@ -33074,8 +33111,8 @@
33074
33111
 
33075
33112
  attributes_2 = set_attributes(div_2, attributes_2, {
33076
33113
  class: classMap({
33077
- [scrollContent$class()]: true,
33078
- 'mdc-tab-scroller__scroll-content': true
33114
+ 'mdc-tab-scroller__scroll-content': true,
33115
+ [scrollContent$class()]: true
33079
33116
  }),
33080
33117
  style: Object.entries(scrollContentStyles).map(([name, value]) => `${name}: ${value};`).join(' '),
33081
33118
  ...get(spread_with_call_2),
@@ -33312,7 +33349,7 @@
33312
33349
  action(div, ($$node, $$action_arg) => useActions?.($$node, $$action_arg), use);
33313
33350
 
33314
33351
  template_effect(() => attributes = set_attributes(div, attributes, {
33315
- class: classMap({ [className()]: true, 'mdc-tab-bar': true }),
33352
+ class: classMap({ 'mdc-tab-bar': true, [className()]: true }),
33316
33353
  role: "tablist",
33317
33354
  tabindex: tabindex(),
33318
33355
  ...get(spread_with_call),
@@ -33356,8 +33393,8 @@
33356
33393
 
33357
33394
  template_effect(() => attributes = set_attributes(div, attributes, {
33358
33395
  class: classMap({
33359
- [className()]: true,
33360
- 'mdc-layout-grid__inner': true
33396
+ 'mdc-layout-grid__inner': true,
33397
+ [className()]: true
33361
33398
  }),
33362
33399
  ...restProps
33363
33400
  }));
@@ -33413,10 +33450,10 @@
33413
33450
 
33414
33451
  template_effect(() => attributes = set_attributes(div, attributes, {
33415
33452
  class: classMap({
33416
- [className()]: true,
33417
33453
  'mdc-layout-grid': true,
33418
33454
  'mdc-layout-grid--fixed-column-width': fixedColumnWidth(),
33419
- ['mdc-layout-grid--align-' + align()]: align() != null
33455
+ ['mdc-layout-grid--align-' + align()]: align() != null,
33456
+ [className()]: true
33420
33457
  }),
33421
33458
  ...get(spread_with_call)
33422
33459
  }));
@@ -33465,7 +33502,6 @@
33465
33502
 
33466
33503
  template_effect(() => attributes = set_attributes(div, attributes, {
33467
33504
  class: classMap({
33468
- [className()]: true,
33469
33505
  'mdc-layout-grid__cell': true,
33470
33506
  ['mdc-layout-grid__cell--align-' + align()]: align() != null,
33471
33507
  ['mdc-layout-grid__cell--order-' + order()]: order() != null,
@@ -33473,7 +33509,8 @@
33473
33509
  ...Object.fromEntries(Object.entries(spanDevices()).map(([device, span]) => [
33474
33510
  `mdc-layout-grid__cell--span-${span}-${device}`,
33475
33511
  true
33476
- ]))
33512
+ ])),
33513
+ [className()]: true
33477
33514
  }),
33478
33515
  ...restProps
33479
33516
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nymphjs/tilmeld-setup",
3
- "version": "1.0.0-beta.93",
3
+ "version": "1.0.0-beta.95",
4
4
  "description": "Nymph.js - Tilmeld Setup App",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "license": "Apache-2.0",
37
37
  "dependencies": {
38
- "@nymphjs/nymph": "^1.0.0-beta.93",
39
- "@nymphjs/tilmeld": "^1.0.0-beta.93",
38
+ "@nymphjs/nymph": "^1.0.0-beta.95",
39
+ "@nymphjs/tilmeld": "^1.0.0-beta.95",
40
40
  "express": "^4.21.2",
41
41
  "locutus": "^2.0.32"
42
42
  },
@@ -44,35 +44,35 @@
44
44
  "@material/elevation": "^14.0.0",
45
45
  "@material/typography": "^14.0.0",
46
46
  "@mdi/js": "^7.4.47",
47
- "@nymphjs/client": "^1.0.0-beta.93",
48
- "@nymphjs/driver-sqlite3": "^1.0.0-beta.93",
49
- "@nymphjs/query-parser": "^1.0.0-beta.93",
50
- "@nymphjs/server": "^1.0.0-beta.93",
51
- "@nymphjs/tilmeld-client": "^1.0.0-beta.93",
52
- "@nymphjs/tilmeld-components": "^1.0.0-beta.93",
47
+ "@nymphjs/client": "^1.0.0-beta.95",
48
+ "@nymphjs/driver-sqlite3": "^1.0.0-beta.95",
49
+ "@nymphjs/query-parser": "^1.0.0-beta.95",
50
+ "@nymphjs/server": "^1.0.0-beta.95",
51
+ "@nymphjs/tilmeld-client": "^1.0.0-beta.95",
52
+ "@nymphjs/tilmeld-components": "^1.0.0-beta.95",
53
53
  "@rollup/plugin-commonjs": "^28.0.1",
54
54
  "@rollup/plugin-node-resolve": "^15.3.0",
55
55
  "@rollup/plugin-typescript": "^12.1.1",
56
- "@smui/button": "^8.0.0-beta.2",
57
- "@smui/card": "^8.0.0-beta.2",
58
- "@smui/checkbox": "^8.0.0-beta.2",
59
- "@smui/circular-progress": "^8.0.0-beta.2",
60
- "@smui/common": "^8.0.0-beta.2",
61
- "@smui/data-table": "^8.0.0-beta.2",
62
- "@smui/dialog": "^8.0.0-beta.2",
63
- "@smui/drawer": "^8.0.0-beta.2",
64
- "@smui/fab": "^8.0.0-beta.2",
65
- "@smui/form-field": "^8.0.0-beta.2",
66
- "@smui/icon-button": "^8.0.0-beta.2",
67
- "@smui/layout-grid": "^8.0.0-beta.2",
68
- "@smui/list": "^8.0.0-beta.2",
69
- "@smui/menu": "^8.0.0-beta.2",
70
- "@smui/paper": "^8.0.0-beta.2",
71
- "@smui/radio": "^8.0.0-beta.2",
72
- "@smui/tab": "^8.0.0-beta.2",
73
- "@smui/tab-bar": "^8.0.0-beta.2",
74
- "@smui/textfield": "^8.0.0-beta.2",
75
- "@smui/top-app-bar": "^8.0.0-beta.2",
56
+ "@smui/button": "^8.0.3",
57
+ "@smui/card": "^8.0.3",
58
+ "@smui/checkbox": "^8.0.3",
59
+ "@smui/circular-progress": "^8.0.3",
60
+ "@smui/common": "^8.0.3",
61
+ "@smui/data-table": "^8.0.3",
62
+ "@smui/dialog": "^8.0.3",
63
+ "@smui/drawer": "^8.0.3",
64
+ "@smui/fab": "^8.0.3",
65
+ "@smui/form-field": "^8.0.3",
66
+ "@smui/icon-button": "^8.0.3",
67
+ "@smui/layout-grid": "^8.0.3",
68
+ "@smui/list": "^8.0.3",
69
+ "@smui/menu": "^8.0.3",
70
+ "@smui/paper": "^8.0.3",
71
+ "@smui/radio": "^8.0.3",
72
+ "@smui/tab": "^8.0.3",
73
+ "@smui/tab-bar": "^8.0.3",
74
+ "@smui/textfield": "^8.0.3",
75
+ "@smui/top-app-bar": "^8.0.3",
76
76
  "@tsconfig/recommended": "^1.0.8",
77
77
  "@tsconfig/svelte": "^5.0.4",
78
78
  "@types/express": "^5.0.0",
@@ -83,7 +83,7 @@
83
83
  "rollup": "^4.28.1",
84
84
  "rollup-plugin-postcss": "^4.0.2",
85
85
  "rollup-plugin-svelte": "^7.2.2",
86
- "smui-theme": "^8.0.0-beta.2",
86
+ "smui-theme": "^8.0.3",
87
87
  "svelte": "^5.11.2",
88
88
  "svelte-check": "^4.1.1",
89
89
  "svelte-preprocess": "^6.0.3",
@@ -91,5 +91,5 @@
91
91
  "tslib": "^2.8.1",
92
92
  "typescript": "^5.7.2"
93
93
  },
94
- "gitHead": "f0ea89c23c880a9b4da42f62d790ece1249192d7"
94
+ "gitHead": "b3a39b69df91ecab985207eb4f42cf91f6981cc5"
95
95
  }