@absoluteui/angular 0.13.1 → 0.13.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.
Files changed (155) hide show
  1. package/README.md +1 -1
  2. package/SECURITY.md +2 -2
  3. package/dist/a11y/index.js +1 -1
  4. package/dist/accordion/index.js +2 -2
  5. package/dist/alert/index.js +2 -2
  6. package/dist/avatar/index.js +2 -2
  7. package/dist/avatar-group/index.js +2 -2
  8. package/dist/badge/index.js +2 -2
  9. package/dist/bar-chart/index.js +2 -2
  10. package/dist/bottom-sheet/index.js +2 -2
  11. package/dist/box-plot/index.js +2 -2
  12. package/dist/breadcrumb/index.js +2 -2
  13. package/dist/bullet-chart/index.js +2 -2
  14. package/dist/business-calendar/index.js +2 -2
  15. package/dist/button/index.js +1 -1
  16. package/dist/button-group/index.js +2 -2
  17. package/dist/calendar/index.js +2 -2
  18. package/dist/calendar-heatmap/index.js +2 -2
  19. package/dist/candlestick-chart/index.js +2 -2
  20. package/dist/card/index.js +2 -2
  21. package/dist/card/parts.js +1 -1
  22. package/dist/carousel/index.js +2 -2
  23. package/dist/cascader/index.js +2 -2
  24. package/dist/chart-export/index.js +1 -1
  25. package/dist/chat/index.js +2 -2
  26. package/dist/checkbox/index.js +2 -2
  27. package/dist/checkbox-group/index.js +2 -2
  28. package/dist/code-viewer/index.js +2 -2
  29. package/dist/collapsible/index.js +2 -2
  30. package/dist/color-picker/index.js +2 -2
  31. package/dist/combo-chart/index.js +2 -2
  32. package/dist/combobox/index.js +2 -2
  33. package/dist/command-palette/index.js +2 -2
  34. package/dist/config.js +1 -1
  35. package/dist/context-menu/index.js +1 -1
  36. package/dist/dashboard/controller.js +1 -1
  37. package/dist/dashboard/index.js +2 -2
  38. package/dist/dashboard-grid/catalog.js +1 -1
  39. package/dist/dashboard-grid/index.js +2 -2
  40. package/dist/dashboard-widget/index.js +2 -2
  41. package/dist/data-grid/index.js +2 -2
  42. package/dist/data-table/column-chooser.js +1 -1
  43. package/dist/data-table/column.js +1 -1
  44. package/dist/data-table/index.js +2 -2
  45. package/dist/date-input/index.js +2 -2
  46. package/dist/date-picker/index.js +2 -2
  47. package/dist/date-range-picker/index.js +2 -2
  48. package/dist/date-time-picker/index.js +2 -2
  49. package/dist/diagram/index.js +2 -2
  50. package/dist/dialog/index.js +2 -2
  51. package/dist/discussion/index.js +2 -2
  52. package/dist/drawer/index.js +2 -2
  53. package/dist/duration-picker/index.js +2 -2
  54. package/dist/empty-state/index.js +2 -2
  55. package/dist/error-summary/index.js +2 -2
  56. package/dist/fieldset/index.js +1 -1
  57. package/dist/file-manager/index.js +2 -2
  58. package/dist/file-upload/index.js +2 -2
  59. package/dist/form/index.js +1 -1
  60. package/dist/form-builder/index.js +2 -2
  61. package/dist/form-field/index.js +2 -2
  62. package/dist/forms/index.js +1 -1
  63. package/dist/funnel-chart/index.js +2 -2
  64. package/dist/gantt/index.js +2 -2
  65. package/dist/gauge/index.js +2 -2
  66. package/dist/heatmap/index.js +2 -2
  67. package/dist/histogram/index.js +2 -2
  68. package/dist/hover-card/index.js +1 -1
  69. package/dist/icon/index.js +1 -1
  70. package/dist/image-viewer/index.js +2 -2
  71. package/dist/index.js +1 -1
  72. package/dist/inline-message/index.js +2 -2
  73. package/dist/internal/bridge.js +1 -1
  74. package/dist/internal/config-keys.js +1 -1
  75. package/dist/internal/diagnostics.js +1 -1
  76. package/dist/internal/form-errors.js +1 -1
  77. package/dist/internal/modal.js +1 -1
  78. package/dist/internal/overlay.js +1 -1
  79. package/dist/internal/render.js +1 -1
  80. package/dist/internal/server-dom.js +1 -1
  81. package/dist/internal/style-sheets.js +2 -2
  82. package/dist/internal/styles.js +1 -1
  83. package/dist/kanban/index.js +2 -2
  84. package/dist/kbd/index.js +2 -2
  85. package/dist/layout/index.js +1 -1
  86. package/dist/line-chart/index.js +2 -2
  87. package/dist/masked-input/index.js +2 -2
  88. package/dist/mention-input/index.js +2 -2
  89. package/dist/menu/index.js +1 -1
  90. package/dist/menu-bar/index.js +2 -2
  91. package/dist/month-picker/index.js +2 -2
  92. package/dist/multi-select/index.js +2 -2
  93. package/dist/network-graph/index.js +2 -2
  94. package/dist/number-input/index.js +2 -2
  95. package/dist/org-chart/index.js +2 -2
  96. package/dist/otp-input/index.js +2 -2
  97. package/dist/overlay/index.js +1 -1
  98. package/dist/pagination/index.js +2 -2
  99. package/dist/password-input/index.js +2 -2
  100. package/dist/password-strength-meter/index.js +2 -2
  101. package/dist/pie-chart/index.js +2 -2
  102. package/dist/pivot-field-list/index.js +2 -2
  103. package/dist/pivot-grid/index.js +2 -2
  104. package/dist/popover/index.js +1 -1
  105. package/dist/progress-bar/index.js +2 -2
  106. package/dist/prompt-input/index.js +2 -2
  107. package/dist/quarter-picker/index.js +2 -2
  108. package/dist/radar-chart/index.js +2 -2
  109. package/dist/radio-group/index.js +2 -2
  110. package/dist/rating/index.js +2 -2
  111. package/dist/recurrence-picker/index.js +2 -2
  112. package/dist/rich-text-editor/index.js +2 -2
  113. package/dist/router/index.js +1 -1
  114. package/dist/scatter-chart/index.js +2 -2
  115. package/dist/schedule-picker/index.js +2 -2
  116. package/dist/scheduler/index.js +2 -2
  117. package/dist/schema-form/index.js +2 -2
  118. package/dist/scroll-area/index.js +1 -1
  119. package/dist/select/index.js +2 -2
  120. package/dist/services.js +1 -1
  121. package/dist/session-warning-dialog/index.js +2 -2
  122. package/dist/sidebar/index.js +2 -2
  123. package/dist/signature-pad/index.js +2 -2
  124. package/dist/skeleton/index.js +2 -2
  125. package/dist/slider/index.js +2 -2
  126. package/dist/sortable-list/index.js +2 -2
  127. package/dist/sparkline/index.js +2 -2
  128. package/dist/spinner/index.js +2 -2
  129. package/dist/splitter/index.js +2 -2
  130. package/dist/stat-card/index.js +2 -2
  131. package/dist/stepper/index.js +2 -2
  132. package/dist/switch/index.js +2 -2
  133. package/dist/tabs/index.js +2 -2
  134. package/dist/tag-group/index.js +2 -2
  135. package/dist/templates/index.js +1 -1
  136. package/dist/testing/index.js +1 -1
  137. package/dist/text-input/index.js +2 -2
  138. package/dist/textarea/index.js +2 -2
  139. package/dist/time-picker/index.js +2 -2
  140. package/dist/timeline/index.js +2 -2
  141. package/dist/toast/index.js +1 -1
  142. package/dist/toggle-group/index.js +2 -2
  143. package/dist/tooltip/index.js +1 -1
  144. package/dist/tour/index.js +2 -2
  145. package/dist/transfer-list/index.js +2 -2
  146. package/dist/tree-select/index.js +2 -2
  147. package/dist/tree-view/index.js +2 -2
  148. package/dist/treemap/index.js +2 -2
  149. package/dist/typography/index.js +1 -1
  150. package/dist/upload-queue/index.js +2 -2
  151. package/dist/validation-message/index.js +2 -2
  152. package/dist/virtual-list/index.js +2 -2
  153. package/dist/waterfall-chart/index.js +2 -2
  154. package/dist/year-picker/index.js +2 -2
  155. package/package.json +7 -7
@@ -1,2 +1,2 @@
1
- /*! AbsoluteUI @absoluteui/angular v0.13.1 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
1
+ /*! AbsoluteUI @absoluteui/angular v0.13.2 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
2
2
  import{isPlatformBrowser as $}from"@angular/common";import{afterNextRender as x,ApplicationRef as R,booleanAttribute as U,computed as D,DestroyRef as N,effect as A,ElementRef as q,inject as p,Injector as T,PLATFORM_ID as B,signal as m,untracked as c,ViewContainerRef as O}from"@angular/core";import{FormGroupDirective as G,FormResetEvent as P,FormSubmittedEvent as W,NgControl as S,NgForm as z,TouchedChangeEvent as K,Validators as L}from"@angular/forms";import{AuiConfig as X}from"../config.js";import{AuiLocale as J}from"../services.js";import{AUI_FORM_ERRORS as Q,errorMessage as Y}from"./form-errors.js";import{createTemplateView as Z,renderTemplateNode as ee,TemplateStyles as _}from"./render.js";import{completeServerDom as te}from"./server-dom.js";import{devWarn as w}from"./diagnostics.js";import{AuiStyleLoader as j}from"./styles.js";function be(l){const e={};for(const[t,s]of Object.entries(l))s!==void 0&&(e[t]=s);return e}function ye(l){return l===void 0?void 0:U(l)}function se(l){return l.detail}function Ae(l){return e=>{l.emit(e)}}const M="data-aui-ssr";function oe(l){const e=l.getAttribute(M);if(e===null)return;const[t="",s=""]=e.split("|");for(const o of t.split(" "))o&&l.removeAttribute(o);for(const o of s.split(" "))o&&l.classList.remove(o);l.classList.length===0&&l.removeAttribute("class"),l.removeAttribute(M),l.replaceChildren()}function re(l,e,t,s){const o=new Set(e.map(n=>n.id)),r=s?c(s):void 0;for(const n of t){const i=c(()=>n.column());i!==""&&!o.has(i)&&w("AUI_NG_TEMPLATE_COLUMN",l,'a column template names column "'.concat(i,'", which the table does not have (template ignored).'));const a=n.of?c(()=>n.of?.()):void 0;a&&r&&a!==r&&w("AUI_NG_TEMPLATE_OF",l,"a template's [auiCellOf] is bound to a different array than [rows]; it only types the template, so bind the same array.")}}function k(l,e){return Object.is(l,e)?!0:!Array.isArray(l)||!Array.isArray(e)||l.length!==e.length?!1:l.every((t,s)=>Object.is(t,e[s]))}function ne(l,e){let t=null;for(const[s,o]of Object.entries(e))Object.is(l[s],o)||((t??={})[s]=o);return t}let V,F;function we(l){return V(l)}const H=new WeakMap;function Ce(l,e){const t=H.get(l);return t?(F(t,e),!0):!1}class ie{static{V=e=>e.#e.asReadonly(),F=(e,t)=>{e.#t.set(t)}}host=p(q).nativeElement;#e=m(null,...ngDevMode?[{debugName:"#controller"}]:[]);#t=m(null,...ngDevMode?[{debugName:"#transform"}]:[]);#s=p(X);#h=p(N);#o=p(T);#i=$(p(B));#l=new WeakMap;#f=!1;#n={};#r=[];#a=[];get controller(){return this.#e()}init(e){H.set(this.host,this);const t=D(()=>{const s={...this.#s.optionsFor(e.configKey),...e.options()},o=this.#t();return o?o(s):s},...ngDevMode?[{debugName:"effective"}]:[]);if(A(()=>{const s=t();c(()=>{const o=this.#e();if(!o)return;const r=ne(this.#n,s);this.#n=s,r&&(o.update(r),this.optionsApplied(),this.afterChange())})}),!this.#i&&this.host.hasAttribute("ngSkipHydration")){let s=!1;A(()=>{const o=t();s||(s=!0,c(()=>{this.#d(e,o)}))})}x(()=>{oe(this.host);const s=c(t),o=e.create(this.host,s);this.#n=s,this.#e.set(o);const r=e.eventTarget?.(o,this.host)??this.host,n=Object.entries(e.events??{}).map(([i,a])=>[i,d=>{d.target===r&&!this.#f&&(a(se(d)),this.afterChange())}]);for(const[i,a]of n)r.addEventListener(i,a);this.#h.onDestroy(()=>{for(const[i,a]of n)r.removeEventListener(i,a)});for(const i of e.strip??[])this.host.removeAttribute(i);e.created?.(o),this.afterChange()}),this.#h.onDestroy(()=>{this.#f=!0,this.#e()?.destroy(),this.#e.set(null)})}#d(e,t){const s=this.host,o=new Set(s.getAttributeNames()),r=new Set(Array.from(s.classList));let n;try{te(s.ownerDocument),n=e.create(s,t)}catch(d){for(const f of s.getAttributeNames())!o.has(f)&&f!=="class"&&s.removeAttribute(f);for(const f of Array.from(s.classList))r.has(f)||s.classList.remove(f);s.replaceChildren(),(typeof ngDevMode>"u"||ngDevMode)&&w("AUI_NG_SERVER_FALLBACK",s.localName,"renders in the browser only (server render failed: ".concat(d instanceof Error?"".concat(d.name,": ").concat(d.message):"unknown error",")."));return}for(const d of e.strip??[])s.removeAttribute(d);this.#n=t,this.#e.set(n),e.serverCreated?.(n),this.afterChange();const i=s.getAttributeNames().filter(d=>!o.has(d)&&d!=="class"),a=Array.from(s.classList).filter(d=>!r.has(d));s.setAttribute(M,"".concat(i.join(" "),"|").concat(a.join(" ")))}templateHook(e,t){if(!e)return;const s=this.#l.get(e);if(s)return s;this.#o.get(j).load(_);const o=this.#o.get(O),r=this.#i?null:this.#o.get(R),n=(...i)=>ee(o,e,t(...i),this.host.ownerDocument,r);return this.#l.set(e,n),n}#u=null;projectedContent(e){if(e){if(this.#u?.template!==e){this.#o.get(j).load(_);const t=Z(this.#o.get(O),e,void 0,this.#i?null:this.#o.get(R));t.detectChanges();const s=t.rootNodes,o=s.some(n=>n.nodeType!==Node.TEXT_NODE||(n.textContent??"").trim()!=="");let r;if(o){const n=this.host.ownerDocument.createElement("span");n.className="aui-template",n.append(...s),r=n}this.#u={template:e,node:r}}return this.#u.node}}tableColumns(e,t,s,o,r=[],n){const i=e??t.map(u=>u.definition());(typeof ngDevMode>"u"||ngDevMode)&&re(this.host.localName,i,[...s,...o,...r],n);const a=new Map,d=new Map,f=new Map;return e||t.forEach((u,C)=>{const g=i[C]?.id;if(g===void 0)return;const v=u.cellTemplate()?.template,b=u.headerTemplate()?.template;v&&a.set(g,v),b&&d.set(g,b);const y=u.editorTemplate()?.template;y&&f.set(g,y)}),s.length===0&&o.length===0&&r.length===0&&a.size===0&&d.size===0&&f.size===0?i:i.map(u=>{const C=a.get(u.id)??s.find(h=>h.column()===u.id)?.template,g=d.get(u.id)??o.find(h=>h.column()===u.id)?.template,v=u.render?void 0:this.templateHook(C,h=>({$implicit:h,row:h,column:u.id})),b=u.renderHeader?void 0:this.templateHook(g,()=>({$implicit:u.header,column:u.id,header:u.header})),y=f.get(u.id)??r.find(h=>h.column()===u.id)?.template,E=u.renderEditor?void 0:this.templateHook(y,h=>({$implicit:h.value,value:h.value,row:h.row,column:h.column,error:h.error,commit:I=>{h.commit(I)},cancel:()=>{h.cancel()}}));return!v&&!b&&!E?u:{...u,...v?{render:v}:{},...b?{renderHeader:b}:{},...E?{renderEditor:E}:{}}})}stateSignal(e,t){const s=m(t,{...ngDevMode?{debugName:"value"}:{},equal:k});return this.#r.push(o=>{s.set(e(o))}),s.asReadonly()}trackModel(e,t,s){this.#a.push(o=>{const r=s(o)??void 0;k(c(e),r)||this.syncModel(e,t,r)})}afterChange(e=!1){const t=c(()=>this.#e());!t||this.#f||c(()=>{for(const s of this.#r)s(t);if(e)for(const s of this.#a)s(t)})}syncModel(e,t,s){this.#n={...this.#n,[t]:s},e.set(s)}optionsApplied(){}}const le={};class Ee extends ie{#e=null;#t=null;#s=null;#h=()=>{};#o=()=>{};#i=()=>{};#l=p(T);#f=p(Q);#n=p(J);#r=null;#a=!1;#d=m(!1,...ngDevMode?[{debugName:"#touched"}]:[]);#u=m(!1,...ngDevMode?[{debugName:"#dirty"}]:[]);#m=m(!1,...ngDevMode?[{debugName:"#pendingState"}]:[]);#c=m(!1,...ngDevMode?[{debugName:"#submitted"}]:[]);#p=m(!1,...ngDevMode?[{debugName:"#invalid"}]:[]);formDisabled=m(!1,...ngDevMode?[{debugName:"formDisabled"}]:[]);formRequired=m(!1,...ngDevMode?[{debugName:"formRequired"}]:[]);formState={touched:this.#d.asReadonly(),dirty:this.#u.asReadonly(),pending:this.#m.asReadonly(),submitted:this.#c.asReadonly(),errorState:D(()=>this.#p()&&(this.#d()||this.#c()))};initControl(e,t){this.#e=t;const s=e.created,o=p(N);A(()=>{const r=t.model();c(()=>{if(r===void 0||this.#s&&Object.is(this.#s.value,r))return;const n=this.controller;n&&(this.#s={value:r},t.write(n,r))})}),A(()=>{this.#m()?this.host.setAttribute("aria-busy","true"):this.host.removeAttribute("aria-busy")}),this.init({...e,create:(r,n)=>{const i=e.create(r,n),a=c(t.model);return a!==void 0&&(t.write(i,a),this.#s={value:a}),i},events:{...e.events,[t.event]:r=>{const n=this.controller;if(n){const i=t.read(n);this.#s={value:i},this.#r=null,t.model.set(i),this.#h(i)}e.events?.[t.event]?.(r)}},serverCreated:r=>{this.#t&&t.write(r,this.#t.value)},created:r=>{this.#t&&(t.write(r,this.#t.value),this.#s=this.#t),this.#t=null;const n=i=>{const a=i.relatedTarget;a instanceof Node&&this.host.contains(a)||(this.#a=!0,this.#o(),this.#a=!1)};this.host.addEventListener("focusout",n),o.onDestroy(()=>{this.host.removeEventListener("focusout",n)}),this.#v(r,t,o),(typeof ngDevMode>"u"||ngDevMode)&&this.#l.get(S,null,{self:!0,optional:!0})!==null&&c(t.model)!==void 0&&w("AUI_NG_VALUE_WITH_FORM",this.host.localName,"has both a value binding and a form directive (formControl, formControlName, or ngModel); use one. The form directive wins."),s?.(r),this.#i()}})}#v(e,t,s){const o=this.#l.get(S,null,{self:!0,optional:!0})?.control??null;if(!o)return;const r=this.#l.get(G,null,{optional:!0})??this.#l.get(z,null,{optional:!0});let n=o.touched;const i=()=>{this.#d.set(o.touched),this.#u.set(o.dirty),this.#m.set(o.pending),this.#p.set(o.invalid),this.#c.set(r?.submitted??!1),this.formRequired.set(o.hasValidator(L.required)||o.hasValidator(L.requiredTrue)),this.#b(e,t,o.errors??le)},a=o.events.subscribe(f=>{f instanceof K&&o.touched!==n&&(o.touched&&!this.#a?t.report?.(e):o.touched||this.#g(e,t,o.value)),n=o.touched,i()}),d=r?.form.events.subscribe(f=>{if(f instanceof W)t.report?.(e);else if(f instanceof P)this.#g(e,t,o.value);else return;i()});s.onDestroy(()=>{a.unsubscribe(),d?.unsubscribe()}),i()}#g(e,t,s){t.reset&&(t.reset(e),this.#r=null,t.write(e,s),this.#s={value:s})}#b(e,t,s){if(!t.customError)return;const o=Object.fromEntries(Object.entries(s).filter(([d])=>d!=="aui")),r=this.#d()||this.#c(),n=t.validity(e),i=!n.valid&&!(n.error==="custom"&&n.message===this.#r),a=r&&!i?Y(o,this.#f,c(this.#n.locale)):null;a!==this.#r&&(this.#r=a,t.customError(e,a))}optionsApplied(){this.#i()}writeValue(e){const t=this.controller;t&&this.#e?(this.#e.write(t,e),this.#s={value:e}):this.#t={value:e}}registerOnChange(e){this.#h=e}registerOnTouched(e){this.#o=e}setDisabledState(e){this.formDisabled.set(e)}validate(){const e=this.controller;if(!e||!this.#e)return null;const t=this.#e.validity(e);return t.valid||t.error==="custom"&&t.message===this.#r?null:{aui:{error:t.error??"custom",message:t.message}}}registerOnValidatorChange(e){this.#i=e}}export{ie as ComponentBridge,Ee as ControlBridge,ye as booleanInput,we as controllerOf,be as defined,se as detailOf,Ae as emitTo,Ce as transformOptionsOf};
@@ -1,2 +1,2 @@
1
- /*! AbsoluteUI @absoluteui/angular v0.13.1 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
1
+ /*! AbsoluteUI @absoluteui/angular v0.13.2 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
2
2
  const e=new Set(["accordion","alert","avatar","avatarGroup","badge","barChart","bottomSheet","boxPlot","breadcrumb","bulletChart","businessCalendar","button","buttonGroup","calendar","calendarHeatmap","candlestickChart","card","carousel","cascader","chat","checkbox","checkboxGroup","codeViewer","collapsible","colorPicker","comboChart","combobox","commandPalette","contextMenu","dashboard","dashboardGrid","dashboardWidget","dataGrid","dataTable","dateInput","datePicker","dateRangePicker","dateTimePicker","diagram","dialog","discussion","drawer","durationPicker","emptyState","errorSummary","fieldset","fileManager","fileUpload","form","formBuilder","formField","funnelChart","gantt","gauge","heatmap","histogram","hoverCard","imageViewer","inlineMessage","kanban","kbd","layout","lineChart","maskedInput","mentionInput","menu","menuBar","monthPicker","multiSelect","networkGraph","numberInput","orgChart","otpInput","pagination","passwordInput","passwordStrengthMeter","pieChart","pivotGrid","popover","progressBar","promptInput","quarterPicker","radarChart","radioGroup","rating","recurrencePicker","richTextEditor","scatterChart","schedulePicker","scheduler","schemaForm","scrollArea","select","sessionWarningDialog","sidebar","signaturePad","skeleton","slider","sortableList","sparkline","spinner","splitter","statCard","stepper","switch","tabs","tagGroup","textInput","textarea","timePicker","timeline","toast","toggleGroup","tooltip","tour","transferList","treeSelect","treeView","treemap","typography","uploadQueue","validationMessage","virtualList","waterfallChart","yearPicker"]);export{e as COMPONENT_CONFIG_KEYS};
@@ -1,2 +1,2 @@
1
- /*! AbsoluteUI @absoluteui/angular v0.13.1 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
1
+ /*! AbsoluteUI @absoluteui/angular v0.13.2 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
2
2
  const e=new Set;function d(){return typeof ngDevMode>"u"||ngDevMode}function s(n,t,r){const o="".concat(n,"|").concat(t);e.has(o)||(e.add(o),console.warn("AbsoluteUI ".concat(n,": <").concat(t,"> ").concat(r)))}function i(){e.clear()}export{d as devMode,s as devWarn,i as resetDiagnostics};
@@ -1,2 +1,2 @@
1
- /*! AbsoluteUI @absoluteui/angular v0.13.1 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
1
+ /*! AbsoluteUI @absoluteui/angular v0.13.2 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
2
2
  import{InjectionToken as i}from"@angular/core";import{getMessage as o,registerMessages as s}from"@absoluteui/core";s("angularForms","en",{required:"This field is required.",email:"Enter a valid email address.",minlength:"Enter at least {requiredLength} characters.",maxlength:"Enter no more than {requiredLength} characters.",min:"Enter a value of at least {min}.",max:"Enter a value of at most {max}.",pattern:"Enter a value in the expected format.",invalid:"This value is not valid."});const u=new i("AUI_FORM_ERRORS",{factory:()=>({})});function d(t){return{provide:u,useValue:t}}const m=new Set(["required","email","minlength","maxlength","min","max","pattern"]);function f(t){const n={};if(t&&typeof t=="object")for(const[a,e]of Object.entries(t))(typeof e=="string"||typeof e=="number")&&(n[a]=e);return n}function p(t,n,a){const e=Object.keys(t)[0];if(e===void 0)return null;const r=n[e];return typeof r=="string"?r:typeof r=="function"?r(t[e]):o("angularForms",m.has(e)?e:"invalid",f(t[e]),a)}export{u as AUI_FORM_ERRORS,p as errorMessage,d as provideAuiFormErrors};
@@ -1,2 +1,2 @@
1
- /*! AbsoluteUI @absoluteui/angular v0.13.1 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
1
+ /*! AbsoluteUI @absoluteui/angular v0.13.2 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
2
2
  import{afterNextRender as y,computed as D,DestroyRef as b,effect as w,inject as c,untracked as d,ViewContainerRef as O}from"@angular/core";import{AuiConfig as h}from"../config.js";import{detailOf as N}from"./bridge.js";import{renderTemplate as R}from"./overlay.js";function M(e){const i=c(O),m=c(h),p=D(()=>({...m.optionsFor(e.configKey),...e.options()}),...ngDevMode?[{debugName:"effective"}]:[]);let t=null,l=null,a=!1;return w(()=>{const o=p(),n=e.open();d(()=>{t&&(t.update(o),n&&!t.isOpen?t.open():!n&&t.isOpen&&t.close())})}),y(()=>{const o=i.element.nativeElement,n=o instanceof Node&&o.ownerDocument?o.ownerDocument:document;l=R(i,e.body(),n);const s=e.create({...d(p),content:l.fragment},n);t=s;const f={...e.events,"aui-open":r=>{e.open.set(!0),e.events["aui-open"]?.(r)},"aui-close":r=>{e.open.set(!1),e.events["aui-close"]?.(r)}};for(const[r,v]of Object.entries(f))s.element.addEventListener(r,u=>{u.target===s.element&&!a&&v(N(u))});d(e.open)&&s.open()}),c(b).onDestroy(()=>{a=!0,t?.destroy(),t=null,l?.view.destroy()}),{controller:()=>t}}export{M as bindModal};
@@ -1,2 +1,2 @@
1
- /*! AbsoluteUI @absoluteui/angular v0.13.1 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
1
+ /*! AbsoluteUI @absoluteui/angular v0.13.2 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
2
2
  function d(n,o,r){const e=n.createEmbeddedView(o);e.detectChanges();const t=r.createDocumentFragment();for(const c of e.rootNodes)t.append(c);return{fragment:t,view:e}}export{d as renderTemplate};
@@ -1,2 +1,2 @@
1
- /*! AbsoluteUI @absoluteui/angular v0.13.1 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
1
+ /*! AbsoluteUI @absoluteui/angular v0.13.2 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
2
2
  import{ChangeDetectionStrategy as l,Component as m,ViewEncapsulation as d}from"@angular/core";import{onNodeRelease as u}from"@absoluteui/core";import*as e from"@angular/core";class s{static ɵfac=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"22.3.0",ngImport:e,type:s,deps:[],target:e.ɵɵFactoryTarget.Component});static ɵcmp=e.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"22.3.0",type:s,isStandalone:!0,selector:"aui-styles-template",ngImport:e,template:"",isInline:!0,styles:["@layer aui.base{.aui-template{display:contents}}"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"22.3.0",ngImport:e,type:s,decorators:[{type:m,args:[{selector:"aui-styles-template",template:"",encapsulation:d.None,changeDetection:l.OnPush,styles:["@layer aui.base{.aui-template{display:contents}}"]}]}]});function y(i,t,n,a){if(!a)return i.createEmbeddedView(t,n);const o=t.createEmbeddedView(n);return a.attachView(o),o}function w(i,t,n,a,o=null){const r=y(i,t,n,o);r.detectChanges();const c=a.createElement("span");c.className="aui-template";for(const p of r.rootNodes)c.append(p);return u(c,()=>{r.destroyed||r.destroy()})}export{s as TemplateStyles,y as createTemplateView,w as renderTemplateNode};
@@ -1,2 +1,2 @@
1
- /*! AbsoluteUI @absoluteui/angular v0.13.1 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
1
+ /*! AbsoluteUI @absoluteui/angular v0.13.2 | (c) Kasadara Technology Solutions Pvt Ltd | Apache-2.0 | https://aui.kasadara.com/license/ */
2
2
  const m=new WeakSet;function a(t,r){let e=Object.getPrototypeOf(t);for(;e&&typeof e=="object";){if(Object.prototype.hasOwnProperty.call(e,r))return e;e=Object.getPrototypeOf(e)}return null}function f(t,r,e){!t||r in t||Object.defineProperty(t,r,{configurable:!0,...e})}function s(t,r,e){f(t,r,{writable:!0,value:e})}function b(t){try{return t(),!0}catch{return!1}}function g(t,r){return typeof r=="string"?t.createTextNode(r):r}const l=t=>"data-".concat(t.replace(/[A-Z]/g,r=>"-".concat(r.toLowerCase()))),w=t=>t.slice(5).replace(/-([a-z])/g,(r,e)=>e.toUpperCase());function v(t){const r={};return new Proxy(r,{get:(e,o)=>typeof o=="string"?t.getAttribute(l(o))??void 0:void 0,set:(e,o,h)=>typeof o!="string"?!1:(t.setAttribute(l(o),String(h)),!0),deleteProperty:(e,o)=>(typeof o=="string"&&t.removeAttribute(l(o)),!0),has:(e,o)=>typeof o=="string"&&t.hasAttribute(l(o)),ownKeys:()=>t.getAttributeNames().filter(e=>e.startsWith("data-")).map(w),getOwnPropertyDescriptor:(e,o)=>{if(!(typeof o!="string"||!t.hasAttribute(l(o))))return{configurable:!0,enumerable:!0,writable:!0,value:t.getAttribute(l(o))??""}}})}const d=new WeakMap;function O(t){const r=t.createElement("div"),e=a(r,"getAttribute");if(!e||m.has(e))return;m.add(e);const o=[e,a(t,"getElementById"),a(t.createDocumentFragment(),"querySelector")??Object.getPrototypeOf(t.createDocumentFragment())];for(const n of o)s(n,"append",function(...i){for(const u of i)this.appendChild(g(this.ownerDocument??t,u))}),s(n,"prepend",function(...i){const u=this.firstChild;for(const c of i)this.insertBefore(g(this.ownerDocument??t,c),u)}),s(n,"replaceChildren",function(...i){for(;this.firstChild;)this.removeChild(this.firstChild);for(const u of i)this.appendChild(g(this.ownerDocument??t,u))});const h=a(r,"appendChild");if(!b(()=>r.baseURI))for(const n of[e,a(t,"getElementById")])!n||Object.prototype.hasOwnProperty.call(n,"baseURI")||Object.defineProperty(n,"baseURI",{configurable:!0,get(){const i=this.ownerDocument??t,u=b(()=>i.documentURI)?i.documentURI:"about:blank",c=i.querySelector("base[href]")?.getAttribute("href");if(c==null)return u;try{return new URL(c,u).href}catch{return u}}});s(h,"getRootNode",function(){let n=this.parentNode??this;for(;n.parentNode;)n=n.parentNode;return n}),f(e,"dataset",{get(){return v(this)}}),f(e,"inert",{get(){return this.hasAttribute("inert")},set(n){this.toggleAttribute("inert",!!n)}}),s(e,"getBoundingClientRect",()=>({x:0,y:0,top:0,left:0,right:0,bottom:0,width:0,height:0,toJSON:()=>({})})),s(e,"scrollIntoView",()=>{}),s(e,"animate",()=>({cancel:()=>{},finish:()=>{},finished:Promise.resolve(),onfinish:null}));const p=a(t.createElement("input"),"value"),y=[p,a(t.createElement("textarea"),"value"),a(t.createElement("select"),"value"),a(t.createElement("button"),"type")];for(const n of y)s(n,"setCustomValidity",function(i){d.set(this,{message:i})}),f(n,"validationMessage",{get(){return d.get(this)?.message??""}}),f(n,"validity",{get(){const i=(d.get(this)?.message??"")!=="";return{valid:!i,customError:i,valueMissing:!1,typeMismatch:!1,patternMismatch:!1,tooLong:!1,tooShort:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,badInput:!1}}}),s(n,"checkValidity",function(){return(d.get(this)?.message??"")===""}),s(n,"reportValidity",function(){return(d.get(this)?.message??"")===""}),f(n,"labels",{get(){return[]}});for(const n of[p,a(t.createElement("textarea"),"value")])s(n,"select",()=>{}),s(n,"setSelectionRange",()=>{}),f(n,"selectionStart",{get(){return this.value.length},set:()=>{}}),f(n,"selectionEnd",{get(){return this.value.length},set:()=>{}})}export{O as completeServerDom};