@dnncommunity/dnn-elements 0.15.1 → 0.15.2
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/cjs/dnn-button_17.cjs.entry.js +3 -3
- package/dist/cjs/dnn-button_17.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn.cjs.js +2 -2
- package/dist/cjs/dnn.cjs.js.map +1 -1
- package/dist/cjs/{index-514ef6dd.js → index-81382452.js} +404 -239
- package/dist/cjs/index-81382452.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/dnn-button/dnn-button.js +195 -192
- package/dist/collection/components/dnn-button/dnn-button.stories.js +1 -1
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.js +85 -99
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.stories.js +1 -1
- package/dist/collection/components/dnn-chevron/dnn-chevron.js +92 -87
- package/dist/collection/components/dnn-chevron/dnn-chevron.stories.js +1 -1
- package/dist/collection/components/dnn-collapsible/dnn-collapsible.js +102 -90
- package/dist/collection/components/dnn-collapsible/dnn-collapsible.stories.js +1 -1
- package/dist/collection/components/dnn-color-picker/dnn-color-picker.js +105 -141
- package/dist/collection/components/dnn-color-picker/dnn-color-picker.stories.js +1 -1
- package/dist/collection/components/dnn-dropzone/dnn-dropzone.js +122 -137
- package/dist/collection/components/dnn-dropzone/dnn-dropzone.stories.js +1 -1
- package/dist/collection/components/dnn-image-cropper/CornerType.js +1 -1
- package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.js +129 -133
- package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.stories.js +1 -1
- package/dist/collection/components/dnn-modal/dnn-modal.css +5 -0
- package/dist/collection/components/dnn-modal/dnn-modal.js +136 -133
- package/dist/collection/components/dnn-modal/dnn-modal.js.map +1 -1
- package/dist/collection/components/dnn-modal/dnn-modal.stories.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.js +164 -223
- package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.stories.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/localization-interface.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/permissions-interface.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/role-group-interface.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/role-interface.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/searched-user-interface.js +1 -1
- package/dist/collection/components/dnn-searchbox/dnn-searchbox.js +101 -94
- package/dist/collection/components/dnn-searchbox/dnn-searchbox.stories.js +1 -1
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.js +55 -54
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.stories.js +1 -1
- package/dist/collection/components/dnn-tab/dnn-tab.js +69 -59
- package/dist/collection/components/dnn-tab/dnn-tab.stories.js +1 -1
- package/dist/collection/components/dnn-tabs/dnn-tabs.js +19 -16
- package/dist/collection/components/dnn-tabs/dnn-tabs.stories.js +1 -1
- package/dist/collection/components/dnn-toggle/dnn-toggle.js +83 -75
- package/dist/collection/components/dnn-toggle/dnn-toggle.stories.js +1 -1
- package/dist/collection/components/dnn-toggle/toggle-interface.js +1 -1
- package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.js +79 -77
- package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.stories.js +1 -1
- package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.js +20 -24
- package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.stories.js +1 -1
- package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.js +117 -111
- package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.stories.js +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/utilities/colorInfo.js +1 -1
- package/dist/collection/utilities/debounce.js +1 -1
- package/dist/collection/utilities/dnnServicesFramework.js +1 -1
- package/dist/collection/utilities/mouseUtilities.js +1 -1
- package/dist/dnn/dnn.esm.js +1 -1
- package/dist/dnn/dnn.esm.js.map +1 -1
- package/dist/dnn/dnn.js +2 -1
- package/dist/dnn/p-21f18e37.system.js +3 -0
- package/dist/dnn/p-21f18e37.system.js.map +1 -0
- package/dist/dnn/p-2a79ad5b.system.entry.js +11 -0
- package/dist/dnn/p-2a79ad5b.system.entry.js.map +1 -0
- package/dist/dnn/{p-5bcf3629.system.js → p-52139080.system.js} +2 -2
- package/dist/dnn/{p-5bcf3629.system.js.map → p-52139080.system.js.map} +1 -1
- package/dist/dnn/{p-909f2db9.entry.js → p-6cc227ab.entry.js} +3 -3
- package/dist/dnn/p-6cc227ab.entry.js.map +1 -0
- package/dist/dnn/p-97d752ed.js +3 -0
- package/dist/dnn/p-97d752ed.js.map +1 -0
- package/dist/esm/dnn-button_17.entry.js +3 -3
- package/dist/esm/dnn-button_17.entry.js.map +1 -1
- package/dist/esm/dnn.js +2 -2
- package/dist/esm/dnn.js.map +1 -1
- package/dist/esm/{index-59e0950f.js → index-e9a3fcad.js} +404 -239
- package/dist/esm/index-e9a3fcad.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm-es5/dnn-button_17.entry.js +2 -2
- package/dist/esm-es5/dnn-button_17.entry.js.map +1 -1
- package/dist/esm-es5/dnn.js +1 -1
- package/dist/esm-es5/dnn.js.map +1 -1
- package/dist/esm-es5/index-e9a3fcad.js +3 -0
- package/dist/esm-es5/index-e9a3fcad.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/types/components.d.ts +73 -17
- package/dist/types/stencil-public-runtime.d.ts +15 -4
- package/loader/package.json +1 -0
- package/package.json +14 -14
- package/dist/cjs/index-514ef6dd.js.map +0 -1
- package/dist/dnn/p-3155c8a8.system.entry.js +0 -11
- package/dist/dnn/p-3155c8a8.system.entry.js.map +0 -1
- package/dist/dnn/p-7ffdbed1.js +0 -2
- package/dist/dnn/p-7ffdbed1.js.map +0 -1
- package/dist/dnn/p-909f2db9.entry.js.map +0 -1
- package/dist/dnn/p-b8064287.system.js +0 -2
- package/dist/dnn/p-b8064287.system.js.map +0 -1
- package/dist/esm/index-59e0950f.js.map +0 -1
- package/dist/esm-es5/index-59e0950f.js +0 -2
- package/dist/esm-es5/index-59e0950f.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["node_modules/@stencil/core/internal/client/patch-esm.js","@lazy-external-entrypoint?app-data=conditional"],"names":["patchEsm","promiseResolve","defineCustomElements","win","options","window","Promise","resolve","then","bootstrapLazy","permissions","roleGroups","roles","resx","foundUsers","selectedRoleGroupId","userQuery","pickedUser","width","height","quality","preventUndersized","view","expanded","hasChildren","expandText","collapseText","color","colorBoxHeight","currentColor","rgbDisplay","hslDisplay","hexDisplay","sortDirection","tabTitle","visible","show","hide","tabTitles","selectedTabTitle","checked","disabled","showDropdownButton","showDropdownMenu","splitterWidth","splitWidthPercentage","leftWidth","rightWidth","setSplitWidthPercentage","getSplitWidthPercentage","useIntermediate","value","allowedExtensions","allowCameraMode","captureQuality","canTakeSnapshots","takingPicture","placeholder","debounced","query","type","reversed","size","confirm","confirmYesText","confirmNoText","confirmMessage","modalVisible","transitionDuration","updateSize","backdropDismiss","closeText","showCloseButton"],"mappings":"wEAKA,IAAMA,SAAW,WAeb,OAAOC,kBCjBC,IAACC,qBAAuB,SAACC,EAAKC,GACxC,UAAWC,SAAW,YAAa,OAAOC,QAAQC,UAClD,OAAOP,WAAWQ,MAAK,WAEvB,OAAOC,cAAc,CAAA,CAAA,gBAAA,CAAA,CAAA,EAAA,uBAAuC,CAAAC,YAAA,CAAA,MAAAC,WAAA,CAAA,IAAAC,MAAA,CAAA,IAAAC,KAAA,CAAA,IAAAC,WAAA,CAAA,IAAAC,oBAAA,CAAA,IAAAC,UAAA,CAAA,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AA,MAAA,CAAA,EAAA,gBAAA,CAAAC,YAAA,CAAA,GAAAC,UAAA,CAAA,GAAAC,MAAA,CAAA,QAAA,CAAA,EAAA,aAAA,CAAAC,KAAA,CAAA,GAAAC,SAAA,CAAA,GAAAC,KAAA,CAAA,GAAAC,QAAA,CAAA,GAAAC,eAAA,CAAA,EAAA,oBAAAC,cAAA,CAAA,EAAA,mBAAAC,eAAA,CAAA,EAAA,mBAAAzB,SAAA,CAAA,GAAA0B,aAAA,CAAA,MAAA,CAAA,EAAA,kBAAA,CAAA5C,SAAA,CAAA,KAAA6C,mBAAA,CAAA,EAAA,uBAAAC,WAAA,CAAA,KAAA,CAAA,CAAA,EAAA,8BAAA,yBAAA,CAAA,EAAA,YAAA,CAAAC,gBAAA,CAAA,EAAA,oBAAAC,UAAA,CAAA,EAAA,cAAAC,gBAAA,CAAA,EAAA,qBAAArC,QAAA,CAAA,MAAAC,KAAA,CAAA,IAAAC,KAAA,CAAA,SAAAjC","sourcesContent":["/*\n Stencil Client Patch Esm v2.
|
|
1
|
+
{"version":3,"sources":["node_modules/@stencil/core/internal/client/patch-esm.js","@lazy-external-entrypoint?app-data=conditional"],"names":["patchEsm","promiseResolve","defineCustomElements","win","options","window","Promise","resolve","then","bootstrapLazy","permissions","roleGroups","roles","resx","foundUsers","selectedRoleGroupId","userQuery","pickedUser","width","height","quality","preventUndersized","view","expanded","hasChildren","expandText","collapseText","color","colorBoxHeight","currentColor","rgbDisplay","hslDisplay","hexDisplay","sortDirection","tabTitle","visible","show","hide","tabTitles","selectedTabTitle","checked","disabled","showDropdownButton","showDropdownMenu","splitterWidth","splitWidthPercentage","leftWidth","rightWidth","setSplitWidthPercentage","getSplitWidthPercentage","useIntermediate","value","allowedExtensions","allowCameraMode","captureQuality","canTakeSnapshots","takingPicture","placeholder","debounced","query","type","reversed","size","confirm","confirmYesText","confirmNoText","confirmMessage","modalVisible","transitionDuration","updateSize","backdropDismiss","closeText","showCloseButton"],"mappings":"wEAKA,IAAMA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BAAAC,UAAA,CAAA,IAAAC,WAAA,CAAA,IAAAC,wBAAA,CAAA,IAAAC,wBAAA,CAAA,MAAA,CAAA,EAAA,eAAA,CAAAT,QAAA,CAAA,MAAAU,gBAAA,CAAA,EAAA,oBAAAC,MAAA,CAAA,KAAA,CAAA,EAAA,eAAA,CAAAtC,KAAA,CAAA,IAAAuC,kBAAA,CAAA,IAAAC,gBAAA,CAAA,EAAA,qBAAAC,eAAA,CAAA,EAAA,mBAAAC,iBAAA,CAAA,IAAAC,cAAA,CAAA,MAAA,CAAA,EAAA,gBAAA,CAAAC,YAAA,CAAA,GAAAC,UAAA,CAAA,GAAAC,MAAA,CAAA,QAAA,CAAA,EAAA,aAAA,CAAAC,KAAA,CAAA,GAAAC,SAAA,CAAA,GAAAC,KAAA,CAAA,GAAAC,QAAA,CAAA,GAAAC,eAAA,CAAA,EAAA,oBAAAC,cAAA,CAAA,EAAA,mBAAAC,eAAA,CAAA,EAAA,mBAAAzB,SAAA,CAAA,GAAA0B,aAAA,CAAA,MAAA,CAAA,EAAA,kBAAA,CAAA5C,SAAA,CAAA,KAAA6C,mBAAA,CAAA,EAAA,uBAAAC,WAAA,CAAA,KAAA,CAAA,CAAA,EAAA,8BAAA,yBAAA,CAAA,EAAA,YAAA,CAAAC,gBAAA,CAAA,EAAA,oBAAAC,UAAA,CAAA,EAAA,cAAAC,gBAAA,CAAA,EAAA,qBAAArC,QAAA,CAAA,MAAAC,KAAA,CAAA,IAAAC,KAAA,CAAA,SAAAjC","sourcesContent":["/*\n Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD } from '@stencil/core/internal/app-data';\nimport { CSS, plt, win, promiseResolve } from '@stencil/core';\nconst patchEsm = () => {\n // NOTE!! This fn cannot use async/await!\n // @ts-ignore\n if (BUILD.cssVarShim && !(CSS && CSS.supports && CSS.supports('color', 'var(--c)'))) {\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-css-shim\" */ './css-shim.js').then(() => {\n if ((plt.$cssShim$ = win.__cssshim)) {\n return plt.$cssShim$.i();\n }\n else {\n // for better minification\n return 0;\n }\n });\n }\n return promiseResolve();\n};\nexport { patchEsm };\n","import { bootstrapLazy } from '@stencil/core';\nimport { patchEsm } from '@stencil/core/internal/client/patch-esm';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = (win, options) => {\n if (typeof window === 'undefined') return Promise.resolve();\n return patchEsm().then(() => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n });\n};\n"]}
|
|
@@ -275,6 +275,62 @@ export namespace Components {
|
|
|
275
275
|
"splitterWidth": number;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
+
export interface DnnButtonCustomEvent<T> extends CustomEvent<T> {
|
|
279
|
+
detail: T;
|
|
280
|
+
target: HTMLDnnButtonElement;
|
|
281
|
+
}
|
|
282
|
+
export interface DnnCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
283
|
+
detail: T;
|
|
284
|
+
target: HTMLDnnCheckboxElement;
|
|
285
|
+
}
|
|
286
|
+
export interface DnnChevronCustomEvent<T> extends CustomEvent<T> {
|
|
287
|
+
detail: T;
|
|
288
|
+
target: HTMLDnnChevronElement;
|
|
289
|
+
}
|
|
290
|
+
export interface DnnCollapsibleCustomEvent<T> extends CustomEvent<T> {
|
|
291
|
+
detail: T;
|
|
292
|
+
target: HTMLDnnCollapsibleElement;
|
|
293
|
+
}
|
|
294
|
+
export interface DnnColorPickerCustomEvent<T> extends CustomEvent<T> {
|
|
295
|
+
detail: T;
|
|
296
|
+
target: HTMLDnnColorPickerElement;
|
|
297
|
+
}
|
|
298
|
+
export interface DnnDropzoneCustomEvent<T> extends CustomEvent<T> {
|
|
299
|
+
detail: T;
|
|
300
|
+
target: HTMLDnnDropzoneElement;
|
|
301
|
+
}
|
|
302
|
+
export interface DnnImageCropperCustomEvent<T> extends CustomEvent<T> {
|
|
303
|
+
detail: T;
|
|
304
|
+
target: HTMLDnnImageCropperElement;
|
|
305
|
+
}
|
|
306
|
+
export interface DnnModalCustomEvent<T> extends CustomEvent<T> {
|
|
307
|
+
detail: T;
|
|
308
|
+
target: HTMLDnnModalElement;
|
|
309
|
+
}
|
|
310
|
+
export interface DnnPermissionsGridCustomEvent<T> extends CustomEvent<T> {
|
|
311
|
+
detail: T;
|
|
312
|
+
target: HTMLDnnPermissionsGridElement;
|
|
313
|
+
}
|
|
314
|
+
export interface DnnSearchboxCustomEvent<T> extends CustomEvent<T> {
|
|
315
|
+
detail: T;
|
|
316
|
+
target: HTMLDnnSearchboxElement;
|
|
317
|
+
}
|
|
318
|
+
export interface DnnSortIconCustomEvent<T> extends CustomEvent<T> {
|
|
319
|
+
detail: T;
|
|
320
|
+
target: HTMLDnnSortIconElement;
|
|
321
|
+
}
|
|
322
|
+
export interface DnnToggleCustomEvent<T> extends CustomEvent<T> {
|
|
323
|
+
detail: T;
|
|
324
|
+
target: HTMLDnnToggleElement;
|
|
325
|
+
}
|
|
326
|
+
export interface DnnTreeviewItemCustomEvent<T> extends CustomEvent<T> {
|
|
327
|
+
detail: T;
|
|
328
|
+
target: HTMLDnnTreeviewItemElement;
|
|
329
|
+
}
|
|
330
|
+
export interface DnnVerticalSplitviewCustomEvent<T> extends CustomEvent<T> {
|
|
331
|
+
detail: T;
|
|
332
|
+
target: HTMLDnnVerticalSplitviewElement;
|
|
333
|
+
}
|
|
278
334
|
declare global {
|
|
279
335
|
interface HTMLDnnButtonElement extends Components.DnnButton, HTMLStencilElement {
|
|
280
336
|
}
|
|
@@ -423,11 +479,11 @@ declare namespace LocalJSX {
|
|
|
423
479
|
/**
|
|
424
480
|
* Fires when confirm is true and the user cancels the action.
|
|
425
481
|
*/
|
|
426
|
-
"onCanceled"?: (event:
|
|
482
|
+
"onCanceled"?: (event: DnnButtonCustomEvent<any>) => void;
|
|
427
483
|
/**
|
|
428
484
|
* Fires when confirm is true and the user confirms the action.
|
|
429
485
|
*/
|
|
430
|
-
"onConfirmed"?: (event:
|
|
486
|
+
"onConfirmed"?: (event: DnnButtonCustomEvent<any>) => void;
|
|
431
487
|
/**
|
|
432
488
|
* Optionally reverses the button style.
|
|
433
489
|
*/
|
|
@@ -449,7 +505,7 @@ declare namespace LocalJSX {
|
|
|
449
505
|
/**
|
|
450
506
|
* Fires up when the checkbox checked property changes.
|
|
451
507
|
*/
|
|
452
|
-
"onCheckedchange"?: (event:
|
|
508
|
+
"onCheckedchange"?: (event: DnnCheckboxCustomEvent<"checked" | "unchecked" | "intermediate">) => void;
|
|
453
509
|
/**
|
|
454
510
|
* Defines if clicking the checkbox will go through the intermediate state between checked and unchecked (tri-state)
|
|
455
511
|
*/
|
|
@@ -475,7 +531,7 @@ declare namespace LocalJSX {
|
|
|
475
531
|
/**
|
|
476
532
|
* Fires up when the expanded status changes
|
|
477
533
|
*/
|
|
478
|
-
"onChanged"?: (event:
|
|
534
|
+
"onChanged"?: (event: DnnChevronCustomEvent<any>) => void;
|
|
479
535
|
}
|
|
480
536
|
interface DnnCollapsible {
|
|
481
537
|
/**
|
|
@@ -485,7 +541,7 @@ declare namespace LocalJSX {
|
|
|
485
541
|
/**
|
|
486
542
|
* Fires whenever the collapsible height has changed
|
|
487
543
|
*/
|
|
488
|
-
"onDnnCollapsibleHeightChanged"?: (event:
|
|
544
|
+
"onDnnCollapsibleHeightChanged"?: (event: DnnCollapsibleCustomEvent<void>) => void;
|
|
489
545
|
/**
|
|
490
546
|
* Defines the transition time in ms, defaults to 150ms
|
|
491
547
|
*/
|
|
@@ -505,7 +561,7 @@ declare namespace LocalJSX {
|
|
|
505
561
|
* Fires up when the color is changed and emits a ColorInfo object
|
|
506
562
|
* @see .. /../utilities/colorInfo.ts
|
|
507
563
|
*/
|
|
508
|
-
"onColorChanged"?: (event:
|
|
564
|
+
"onColorChanged"?: (event: DnnColorPickerCustomEvent<ColorInfo>) => void;
|
|
509
565
|
}
|
|
510
566
|
interface DnnDropzone {
|
|
511
567
|
/**
|
|
@@ -523,7 +579,7 @@ declare namespace LocalJSX {
|
|
|
523
579
|
/**
|
|
524
580
|
* Fires when file were selected.
|
|
525
581
|
*/
|
|
526
|
-
"onFilesSelected"?: (event:
|
|
582
|
+
"onFilesSelected"?: (event: DnnDropzoneCustomEvent<File[]>) => void;
|
|
527
583
|
/**
|
|
528
584
|
* Localization strings
|
|
529
585
|
*/
|
|
@@ -543,7 +599,7 @@ declare namespace LocalJSX {
|
|
|
543
599
|
/**
|
|
544
600
|
* When the image crop changes, emits the dataurl for the new cropped image.
|
|
545
601
|
*/
|
|
546
|
-
"onImageCropChanged"?: (event:
|
|
602
|
+
"onImageCropChanged"?: (event: DnnImageCropperCustomEvent<string>) => void;
|
|
547
603
|
/**
|
|
548
604
|
* When set to true, prevents cropping an image smaller than the required size, which would blow pixel and make the final picture look blurry.
|
|
549
605
|
*/
|
|
@@ -581,7 +637,7 @@ declare namespace LocalJSX {
|
|
|
581
637
|
/**
|
|
582
638
|
* Fires when the modal is dismissed.
|
|
583
639
|
*/
|
|
584
|
-
"onDismissed"?: (event:
|
|
640
|
+
"onDismissed"?: (event: DnnModalCustomEvent<any>) => void;
|
|
585
641
|
/**
|
|
586
642
|
* Optionally you can pass false to not show the close button. If you decide to do so, you should either not also prevent dismissal by clicking the backdrop or provide your own dismissal logic in the modal content.
|
|
587
643
|
*/
|
|
@@ -599,11 +655,11 @@ declare namespace LocalJSX {
|
|
|
599
655
|
/**
|
|
600
656
|
* Fires when any permissions have changed, can be used for instance to have linked permissions.
|
|
601
657
|
*/
|
|
602
|
-
"onPermissionsChanged"?: (event:
|
|
658
|
+
"onPermissionsChanged"?: (event: DnnPermissionsGridCustomEvent<IPermissions>) => void;
|
|
603
659
|
/**
|
|
604
660
|
* Fires when searching for users to add to the permissions. Emits the search query.
|
|
605
661
|
*/
|
|
606
|
-
"onUserSearchQueryChanged"?: (event:
|
|
662
|
+
"onUserSearchQueryChanged"?: (event: DnnPermissionsGridCustomEvent<string>) => void;
|
|
607
663
|
/**
|
|
608
664
|
* The list of permissions.
|
|
609
665
|
*/
|
|
@@ -629,7 +685,7 @@ declare namespace LocalJSX {
|
|
|
629
685
|
/**
|
|
630
686
|
* Fires up each time the search query changes. The data passed is the new query.
|
|
631
687
|
*/
|
|
632
|
-
"onQueryChanged"?: (event:
|
|
688
|
+
"onQueryChanged"?: (event: DnnSearchboxCustomEvent<string>) => void;
|
|
633
689
|
/**
|
|
634
690
|
* Sets the field placeholder text.
|
|
635
691
|
*/
|
|
@@ -643,7 +699,7 @@ declare namespace LocalJSX {
|
|
|
643
699
|
/**
|
|
644
700
|
* Emitted when the sort is changed.
|
|
645
701
|
*/
|
|
646
|
-
"onSortChanged"?: (event:
|
|
702
|
+
"onSortChanged"?: (event: DnnSortIconCustomEvent<"asc"|"desc"|"none">) => void;
|
|
647
703
|
/**
|
|
648
704
|
* Defines the current sort direction
|
|
649
705
|
*/
|
|
@@ -669,7 +725,7 @@ declare namespace LocalJSX {
|
|
|
669
725
|
/**
|
|
670
726
|
* Fires when the toggle changed
|
|
671
727
|
*/
|
|
672
|
-
"onCheckChanged"?: (event:
|
|
728
|
+
"onCheckChanged"?: (event: DnnToggleCustomEvent<DnnToggleChangeEventDetail>) => void;
|
|
673
729
|
}
|
|
674
730
|
interface DnnTreeviewItem {
|
|
675
731
|
/**
|
|
@@ -679,11 +735,11 @@ declare namespace LocalJSX {
|
|
|
679
735
|
/**
|
|
680
736
|
* Fires when the user collapses a node.
|
|
681
737
|
*/
|
|
682
|
-
"onUserCollapsed"?: (event:
|
|
738
|
+
"onUserCollapsed"?: (event: DnnTreeviewItemCustomEvent<void>) => void;
|
|
683
739
|
/**
|
|
684
740
|
* Fires when the user expands a node.
|
|
685
741
|
*/
|
|
686
|
-
"onUserExpanded"?: (event:
|
|
742
|
+
"onUserExpanded"?: (event: DnnTreeviewItemCustomEvent<void>) => void;
|
|
687
743
|
}
|
|
688
744
|
interface DnnVerticalOverflowMenu {
|
|
689
745
|
}
|
|
@@ -691,7 +747,7 @@ declare namespace LocalJSX {
|
|
|
691
747
|
/**
|
|
692
748
|
* Fires when the width of the divider changes.
|
|
693
749
|
*/
|
|
694
|
-
"onWidthChanged"?: (event:
|
|
750
|
+
"onWidthChanged"?: (event: DnnVerticalSplitviewCustomEvent<number>) => void;
|
|
695
751
|
/**
|
|
696
752
|
* The percentage position of the splitter in the container.
|
|
697
753
|
*/
|
|
@@ -221,7 +221,8 @@ export declare type ErrorHandler = (err: any, element?: HTMLElement) => void;
|
|
|
221
221
|
*/
|
|
222
222
|
export declare const setMode: (handler: ResolutionHandler) => void;
|
|
223
223
|
/**
|
|
224
|
-
* getMode
|
|
224
|
+
* `getMode()` is used for libraries which provide multiple "modes" for styles.
|
|
225
|
+
* @param ref a reference to the node to get styles for
|
|
225
226
|
*/
|
|
226
227
|
export declare function getMode<T = string | undefined>(ref: any): T;
|
|
227
228
|
export declare function setPlatformHelpers(helpers: {
|
|
@@ -234,6 +235,8 @@ export declare function setPlatformHelpers(helpers: {
|
|
|
234
235
|
/**
|
|
235
236
|
* Get the base path to where the assets can be found. Use `setAssetPath(path)`
|
|
236
237
|
* if the path needs to be customized.
|
|
238
|
+
* @param path the path to use in calculating the asset path. this value will be
|
|
239
|
+
* used in conjunction with the base asset path
|
|
237
240
|
*/
|
|
238
241
|
export declare function getAssetPath(path: string): string;
|
|
239
242
|
/**
|
|
@@ -246,18 +249,22 @@ export declare function getAssetPath(path: string): string;
|
|
|
246
249
|
* `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
|
|
247
250
|
* dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
|
|
248
251
|
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
249
|
-
*
|
|
252
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
250
253
|
* will have to ensure the static assets are copied to its build directory.
|
|
254
|
+
* @param path the asset path to set
|
|
251
255
|
*/
|
|
252
256
|
export declare function setAssetPath(path: string): string;
|
|
253
257
|
/**
|
|
254
|
-
*
|
|
258
|
+
* Retrieve a Stencil element for a given reference
|
|
259
|
+
* @param ref the ref to get the Stencil element for
|
|
255
260
|
*/
|
|
256
261
|
export declare function getElement(ref: any): HTMLStencilElement;
|
|
257
262
|
/**
|
|
258
263
|
* Schedules a new render of the given instance or element even if no state changed.
|
|
259
264
|
*
|
|
260
|
-
* Notice `forceUpdate()` is not
|
|
265
|
+
* Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
|
|
266
|
+
*
|
|
267
|
+
* @param ref the node/element to force the re-render of
|
|
261
268
|
*/
|
|
262
269
|
export declare function forceUpdate(ref: any): void;
|
|
263
270
|
/**
|
|
@@ -272,6 +279,8 @@ export interface HTMLStencilElement extends HTMLElement {
|
|
|
272
279
|
* in the best moment to perform DOM mutation without causing layout thrashing.
|
|
273
280
|
*
|
|
274
281
|
* For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
|
|
282
|
+
*
|
|
283
|
+
* @param task the DOM-write to schedule
|
|
275
284
|
*/
|
|
276
285
|
export declare function writeTask(task: RafCallback): void;
|
|
277
286
|
/**
|
|
@@ -279,6 +288,8 @@ export declare function writeTask(task: RafCallback): void;
|
|
|
279
288
|
* in the best moment to perform DOM reads without causing layout thrashing.
|
|
280
289
|
*
|
|
281
290
|
* For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
|
|
291
|
+
*
|
|
292
|
+
* @param task the DOM-read to schedule
|
|
282
293
|
*/
|
|
283
294
|
export declare function readTask(task: RafCallback): void;
|
|
284
295
|
/**
|
package/loader/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnncommunity/dnn-elements",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"repository": "https://github.com/dnncommunity/dnn-elements",
|
|
6
6
|
"homepage": "https://dnncommunity.github.io/dnn-elements",
|
|
@@ -35,31 +35,31 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "^7.17.5",
|
|
37
37
|
"@geometricpanda/storybook-addon-badges": "^0.2.2",
|
|
38
|
-
"@stencil/core": "^2.
|
|
38
|
+
"@stencil/core": "^2.18.1",
|
|
39
39
|
"@stencil/eslint-plugin": "^0.4.0",
|
|
40
40
|
"@stencil/sass": "^2.0.0",
|
|
41
|
-
"@storybook/addon-a11y": "^6.5.
|
|
42
|
-
"@storybook/addon-actions": "^6.5.
|
|
43
|
-
"@storybook/addon-essentials": "^6.5.
|
|
44
|
-
"@storybook/addon-links": "^6.5.
|
|
41
|
+
"@storybook/addon-a11y": "^6.5.13",
|
|
42
|
+
"@storybook/addon-actions": "^6.5.13",
|
|
43
|
+
"@storybook/addon-essentials": "^6.5.13",
|
|
44
|
+
"@storybook/addon-links": "^6.5.13",
|
|
45
45
|
"@storybook/addon-notes": "^5.3.21",
|
|
46
|
-
"@storybook/html": "^6.5.
|
|
47
|
-
"@storybook/web-components": "^6.5.
|
|
48
|
-
"@types/jest": "^
|
|
49
|
-
"@types/puppeteer": "5.4.
|
|
46
|
+
"@storybook/html": "^6.5.13",
|
|
47
|
+
"@storybook/web-components": "^6.5.13",
|
|
48
|
+
"@types/jest": "^27.0.3",
|
|
49
|
+
"@types/puppeteer": "5.4.7",
|
|
50
50
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
51
51
|
"@typescript-eslint/parser": "^4.33.0",
|
|
52
52
|
"babel-loader": "^8.2.3",
|
|
53
53
|
"eslint": "^7.32.0",
|
|
54
54
|
"eslint-plugin-react": "^7.16.0",
|
|
55
|
-
"eslint-plugin-storybook": "^0.6.
|
|
55
|
+
"eslint-plugin-storybook": "^0.6.6",
|
|
56
56
|
"gh-pages": "^4.0.0",
|
|
57
|
-
"jest": "^
|
|
57
|
+
"jest": "^27.0.3",
|
|
58
58
|
"jest-cli": "^27.5.1",
|
|
59
59
|
"license-checker": "^25.0.1",
|
|
60
|
-
"lit-html": "^2.
|
|
60
|
+
"lit-html": "^2.3.1",
|
|
61
61
|
"npm-run-all": "^4.1.5",
|
|
62
|
-
"puppeteer": "^
|
|
62
|
+
"puppeteer": "^19.1.0",
|
|
63
63
|
"typescript": "^4.5.5",
|
|
64
64
|
"typescript-debounce-decorator": "^0.0.18"
|
|
65
65
|
},
|