@gravionlabs/helix-ui 22.9.1 → 22.10.1

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/core.css CHANGED
@@ -1174,12 +1174,24 @@
1174
1174
  * Dialog: `<hx-dialog>` and the dialogs of `HxDialogService`. The box (`.hx-dialog`) is a grid of the title, the
1175
1175
  * content and the footer, with the close button in the title row (it comes last in the DOM, so the content gets the
1176
1176
  * focus first). The mask is `.hx-dialog-backdrop`; the pane and the global positioning are the CDK's. The content
1177
- * scrolls when the dialog is taller than the screen.
1177
+ * scrolls when the dialog is taller than the screen. `.hx-dialog-size-sm|md|lg` set the width of the pane.
1178
1178
  */
1179
1179
  .hx-dialog-anchor {
1180
1180
  display: none;
1181
1181
  }
1182
1182
 
1183
+ .hx-dialog-size-sm {
1184
+ width: var(--h-dialog-sm-width);
1185
+ }
1186
+
1187
+ .hx-dialog-size-md {
1188
+ width: var(--h-dialog-md-width);
1189
+ }
1190
+
1191
+ .hx-dialog-size-lg {
1192
+ width: var(--h-dialog-lg-width);
1193
+ }
1194
+
1183
1195
  .hx-dialog-backdrop {
1184
1196
  background: var(--h-mask-background);
1185
1197
  }
@@ -2864,6 +2864,7 @@ var HxDialog = class HxDialog {
2864
2864
  transform: booleanAttribute
2865
2865
  });
2866
2866
  position = input("center", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
2867
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
2867
2868
  width = input(...ngDevMode ? [void 0, { debugName: "width" }] : /* istanbul ignore next */ []);
2868
2869
  height = input(...ngDevMode ? [void 0, { debugName: "height" }] : /* istanbul ignore next */ []);
2869
2870
  panelClass = input(...ngDevMode ? [void 0, { debugName: "panelClass" }] : /* istanbul ignore next */ []);
@@ -2891,7 +2892,11 @@ var HxDialog = class HxDialog {
2891
2892
  const ref = this.#dialog.open(panel, {
2892
2893
  hasBackdrop: modal,
2893
2894
  backdropClass: "hx-dialog-backdrop",
2894
- panelClass: ["hx-dialog-panel", ...[this.panelClass() ?? []].flat()],
2895
+ panelClass: [
2896
+ "hx-dialog-panel",
2897
+ `hx-dialog-size-${this.size()}`,
2898
+ ...[this.panelClass() ?? []].flat()
2899
+ ],
2895
2900
  width: this.width(),
2896
2901
  height: this.height(),
2897
2902
  maxWidth: "calc(100vw - 2rem)",
@@ -2990,6 +2995,13 @@ var HxDialog = class HxDialog {
2990
2995
  isRequired: false,
2991
2996
  transformFunction: null
2992
2997
  },
2998
+ size: {
2999
+ classPropertyName: "size",
3000
+ publicName: "size",
3001
+ isSignal: true,
3002
+ isRequired: false,
3003
+ transformFunction: null
3004
+ },
2993
3005
  width: {
2994
3006
  classPropertyName: "width",
2995
3007
  publicName: "width",
@@ -3136,6 +3148,14 @@ i0.ɵɵngDeclareClassMetadata({
3136
3148
  required: false
3137
3149
  }]
3138
3150
  }],
3151
+ size: [{
3152
+ type: i0.Input,
3153
+ args: [{
3154
+ isSignal: true,
3155
+ alias: "size",
3156
+ required: false
3157
+ }]
3158
+ }],
3139
3159
  width: [{
3140
3160
  type: i0.Input,
3141
3161
  args: [{